Aspose::Pdf::Forms::ExternalSignature::ExternalSignature constructor
ExternalSignature::ExternalSignature(const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>&) constructor
Creates a detached PKCS#7 (detached) signature using a X509Certificate2. It supports usb smartcards, tokens without exportable private keys.
Aspose::Pdf::Forms::ExternalSignature::ExternalSignature(const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2> &certificate)
| Parameter | Type | Description |
|---|---|---|
| certificate | const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>& | The certificate with the private key. |
Remarks
The digest algorithm will be automatically selected based on the certificate key data.
See Also
- Typedef SharedPtr
- Class X509Certificate2
- Class ExternalSignature
- Namespace Aspose::Pdf::Forms
- Library Aspose.PDF for C++
ExternalSignature::ExternalSignature(const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>&, bool) constructor
Creates a detached PKCS#7 signature using a X509Certificate2. It supports usb smartcards, tokens without exportable private keys.
Aspose::Pdf::Forms::ExternalSignature::ExternalSignature(const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2> &certificate, bool detached)
| Parameter | Type | Description |
|---|---|---|
| certificate | const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>& | The certificate with the private key. |
| detached | bool | 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 DigestHashAlgorithm::Auto ).
See Also
- Typedef SharedPtr
- Class X509Certificate2
- Class ExternalSignature
- Namespace Aspose::Pdf::Forms
- Library Aspose.PDF for C++
ExternalSignature::ExternalSignature(const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>&, DigestHashAlgorithm) constructor
Creates a detached PKCS#7 (detached) signature using a X509Certificate2. It supports usb smartcards, tokens without exportable private keys.
Aspose::Pdf::Forms::ExternalSignature::ExternalSignature(const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2> &certificate, DigestHashAlgorithm digestHashAlgorithm)
| Parameter | Type | Description |
|---|---|---|
| certificate | const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>& | The certificate with the private key. |
| digestHashAlgorithm | DigestHashAlgorithm | The digest algorithm to sign a document. |
See Also
- Typedef SharedPtr
- Class X509Certificate2
- Enum DigestHashAlgorithm
- Class ExternalSignature
- Namespace Aspose::Pdf::Forms
- Library Aspose.PDF for C++
ExternalSignature::ExternalSignature(const System::String&, bool) constructor
Creates a PKCS#7 signature using a X509Certificate2 as base64 string.
Aspose::Pdf::Forms::ExternalSignature::ExternalSignature(const System::String &base64, bool detached)
| Parameter | Type | Description |
|---|---|---|
| base64 | const System::String& | X509Certificate2 as base64 string. |
| detached | bool | 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 DigestHashAlgorithm::Auto ).
See Also
- Class String
- Class ExternalSignature
- Namespace Aspose::Pdf::Forms
- Library Aspose.PDF for C++
ExternalSignature::ExternalSignature(const System::String&, DigestHashAlgorithm) constructor
Creates a PKCS#7 (detached) signature using a X509Certificate2 as base64 string.
Aspose::Pdf::Forms::ExternalSignature::ExternalSignature(const System::String &base64, DigestHashAlgorithm digestHashAlgorithm)
| Parameter | Type | Description |
|---|---|---|
| base64 | const System::String& | X509Certificate2 as base64 string. |
| digestHashAlgorithm | DigestHashAlgorithm | The digest algorithm to sign a document. |
See Also
- Class String
- Enum DigestHashAlgorithm
- Class ExternalSignature
- Namespace Aspose::Pdf::Forms
- Library Aspose.PDF for C++