X509Certificate2Signature
X509Certificate2Signature Public class
Description
Creates a signature using a X509Certificate2. It supports smartcards without exportable private keys.
Diagram
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph iTextSharp.text.pdf.security
iTextSharp.text.pdf.security.X509Certificate2Signature[[X509Certificate2Signature]]
iTextSharp.text.pdf.security.IExternalSignature[[IExternalSignature]]
class iTextSharp.text.pdf.security.IExternalSignature interfaceStyle;
end
iTextSharp.text.pdf.security.IExternalSignature --> iTextSharp.text.pdf.security.X509Certificate2Signature
Members
Methods
Public methods
Returns | Name |
---|---|
string | GetEncryptionAlgorithm () |
string | GetHashAlgorithm () |
byte``[] | Sign (byte``[] message) |
Details
Summary
Creates a signature using a X509Certificate2. It supports smartcards without exportable private keys.
Inheritance
Constructors
X509Certificate2Signature
public X509Certificate2Signature(X509Certificate2 certificate, string hashAlgorithm)
Arguments
Type | Name | Description |
---|---|---|
X509Certificate2 | certificate | The certificate with the private key |
string | hashAlgorithm | 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 |
Summary
Creates a signature using a X509Certificate2. It supports smartcards without exportable private keys.
Methods
Sign
public virtual byte Sign(byte[] message)
Arguments
Type | Name | Description |
---|---|---|
byte``[] | message |
GetHashAlgorithm
public virtual string GetHashAlgorithm()
GetEncryptionAlgorithm
public virtual string GetEncryptionAlgorithm()
Generated with ModularDoc