C# Class wSigner.AdobePdfSigner

Inheritance: DocumentSigner
Show file Open project: wpq0/Document-Signer Class Usage Examples

Public Methods

Method Description
Sign ( Stream input, Stream output, X509Certificate2 certificate ) : void

Sign

Verify ( Stream input, string serial = null ) : bool

Private Methods

Method Description
SetSigCryptoFromCipherParam ( PdfSignatureAppearance sigAppearance, ICipherParameters key, Org.BouncyCastle.X509.X509Certificate chain ) : void
SetSigCryptoFromX509 ( PdfSignatureAppearance sigAppearance, X509Certificate2 card, Org.BouncyCastle.X509.X509Certificate chain ) : void
SetSigPosition ( PdfSignatureAppearance sigAppearance, int oldSigCount ) : void
SetSigText ( PdfSignatureAppearance sigAppearance, IList chain ) : void
SignMsg ( Byte msg, X509Certificate2 signerCert, bool detached ) : byte[]
SignWithPkcs12KeyStore ( string keyStore, string password, string input, string output ) : void

Method Details

Sign() public method

Sign
public Sign ( Stream input, Stream output, X509Certificate2 certificate ) : void
input Stream The input.
output Stream The output.
certificate System.Security.Cryptography.X509Certificates.X509Certificate2 The certificate.
return void

Verify() public method

public Verify ( Stream input, string serial = null ) : bool
input Stream
serial string
return bool