ExternalSignature.ExternalSignature
ExternalSignature(X509Certificate2)
Creates a detached PKCS#7 (detached)
signature using a X509Certificate2. It supports usb smartcards, tokens without exportable private keys.
public ExternalSignature(X509Certificate2 certificate)
Parameter | Type | Description |
---|---|---|
certificate | X509Certificate2 | The certificate with the private key. |
Remarks
The digest algorithm will be automatically selected based on the certificate key data.
See Also
- class ExternalSignature
- namespace Aspose.Pdf.Forms
- assembly Aspose.PDF
ExternalSignature(X509Certificate2, DigestHashAlgorithm)
Creates a detached PKCS#7 (detached)
signature using a X509Certificate2. It supports usb smartcards, tokens without exportable private keys.
public ExternalSignature(X509Certificate2 certificate, DigestHashAlgorithm digestHashAlgorithm)
Parameter | Type | Description |
---|---|---|
certificate | X509Certificate2 | The certificate with the private key. |
digestHashAlgorithm | DigestHashAlgorithm | The digest algorithm to sign a document. |
See Also
- enum DigestHashAlgorithm
- class ExternalSignature
- namespace Aspose.Pdf.Forms
- assembly Aspose.PDF
ExternalSignature(X509Certificate2, bool)
Creates a detached PKCS#7 signature using a X509Certificate2. It supports usb smartcards, tokens without exportable private keys.
public ExternalSignature(X509Certificate2 certificate, bool detached)
Parameter | Type | Description |
---|---|---|
certificate | X509Certificate2 | The certificate with the private key. |
detached | Boolean | True if the signature should be detached, otherwise false. |
Remarks
For detached set to false the digest algorithm will always be SHA1
. Otherwise, the digest algorithm will be automatically selected based on the certificate key data( see Auto ).
See Also
- class ExternalSignature
- namespace Aspose.Pdf.Forms
- assembly Aspose.PDF
ExternalSignature(string, bool)
Creates a PKCS#7 signature using a X509Certificate2 as base64 string.
public ExternalSignature(string base64, bool detached)
Parameter | Type | Description |
---|---|---|
base64 | String | X509Certificate2 as base64 string. |
detached | Boolean | True if the signature should be detached, otherwise false. |
Remarks
For detached set to false the digest algorithm will always be SHA1
. Otherwise, the digest algorithm will be automatically selected based on the certificate key data( see Auto ).
See Also
- class ExternalSignature
- namespace Aspose.Pdf.Forms
- assembly Aspose.PDF
ExternalSignature(string, DigestHashAlgorithm)
Creates a PKCS#7 (detached)
signature using a X509Certificate2 as base64 string.
public ExternalSignature(string base64, DigestHashAlgorithm digestHashAlgorithm)
Parameter | Type | Description |
---|---|---|
base64 | String | X509Certificate2 as base64 string. |
digestHashAlgorithm | DigestHashAlgorithm | The digest algorithm to sign a document. |
See Also
- enum DigestHashAlgorithm
- class ExternalSignature
- namespace Aspose.Pdf.Forms
- assembly Aspose.PDF