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 |
|---|---|
|
|
() |
|
|
() |
|
|
( |
Details
Summary
Creates a signature using a X509Certificate2. It supports smartcards without exportable private keys.
Inheritance
Constructors
X509Certificate2Signature
Source code
public X509Certificate2Signature(X509Certificate2 certificate, string hashAlgorithm)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
certificate |
The certificate with the private key |
|
|
hashAlgorithm |
The hash algorithm for the signature. As the Windows CAPI is used
|
Summary
Creates a signature using a X509Certificate2. It supports smartcards without exportable private keys.
Methods
Sign
Source code
public virtual byte Sign(byte[] message)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
message |
GetHashAlgorithm
Source code
public virtual string GetHashAlgorithm()
GetEncryptionAlgorithm
Source code
public virtual string GetEncryptionAlgorithm()
Generated with ModularDoc