Versions in this module Expand all Collapse all v0 v0.0.3 May 21, 2024 Changes in this version + func NewCustomHandler(initFunc InitFunc, signFunc SignFunc) model.SignatureHandler + func NewGlobalSignDSS(ctx context.Context, m *globalsign.Manager, signer string, ...) (model.SignatureHandler, error) + func NewSigner(cb SignerCallback) crypto.Signer + type CertificateChainGetter interface + GetCertificateChain func() []*x509.Certificate + type CustomHandler struct + func (h *CustomHandler) InitSignature(sig *model.PdfSignature) error + func (h *CustomHandler) IsApplicable(sig *model.PdfSignature) bool + func (h *CustomHandler) NewDigest(sig *model.PdfSignature) (model.Hasher, error) + func (h *CustomHandler) Sign(sig *model.PdfSignature, digest model.Hasher) error + func (h *CustomHandler) Validate(sig *model.PdfSignature, digest model.Hasher) (model.SignatureValidationResult, error) + type GlobalsignDSS struct + func (h *GlobalsignDSS) GetCertificateChain() []*x509.Certificate + func (h *GlobalsignDSS) InitSignature(sig *model.PdfSignature) error + func (h *GlobalsignDSS) IsApplicable(sig *model.PdfSignature) bool + func (h *GlobalsignDSS) NewDigest(sig *model.PdfSignature) (model.Hasher, error) + func (h *GlobalsignDSS) Sign(sig *model.PdfSignature, digest model.Hasher) error + func (h *GlobalsignDSS) Validate(sig *model.PdfSignature, digest model.Hasher) (model.SignatureValidationResult, error) + type InitFunc func(model.SignatureHandler, *model.PdfSignature) error + type SignFunc func(model.SignatureHandler, *model.PdfSignature, model.Hasher) error + type Signer struct + func (s *Signer) EncryptionAlgorithmOID() asn1.ObjectIdentifier + func (s *Signer) Public() crypto.PublicKey + func (s *Signer) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) (signature []byte, err error) + type SignerCallback func(rand io.Reader, digest []byte, opts crypto.SignerOpts) ([]byte, error) v0.0.1 Jun 4, 2021