C# Class iTextSharp.text.pdf.security.X509Certificate2Signature

Creates a signature using a X509Certificate2. It supports smartcards without exportable private keys.
Inheritance: IExternalSignature
Exibir arquivo Open project: nonorganic/dssnet Class Usage Examples

Public Methods

Method Description
GetEncryptionAlgorithm ( ) : String
GetHashAlgorithm ( ) : String
Sign ( byte message ) : byte[]
X509Certificate2Signature ( X509Certificate2 certificate, String hashAlgorithm ) : System

Creates a signature using a X509Certificate2. It supports smartcards without exportable private keys.

Method Details

GetEncryptionAlgorithm() public method

public GetEncryptionAlgorithm ( ) : String
return String

GetHashAlgorithm() public method

public GetHashAlgorithm ( ) : String
return String

Sign() public method

public Sign ( byte message ) : byte[]
message byte
return byte[]

X509Certificate2Signature() public method

Creates a signature using a X509Certificate2. It supports smartcards without exportable private keys.
public X509Certificate2Signature ( X509Certificate2 certificate, String hashAlgorithm ) : System
certificate System.Security.Cryptography.X509Certificates.X509Certificate2 The certificate with the private key
hashAlgorithm String The hash algorithm for the signature. As the Windows CAPI is used /// to do the signature the only hash guaranteed to exist is SHA-1
return System