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)
ParameterTypeDescription
certificateconst 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

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)
ParameterTypeDescription
certificateconst System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>&The certificate with the private key.
detachedboolTrue 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

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)
ParameterTypeDescription
certificateconst System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>&The certificate with the private key.
digestHashAlgorithmDigestHashAlgorithmThe digest algorithm to sign a document.

See Also

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)
ParameterTypeDescription
base64const System::String&X509Certificate2 as base64 string.
detachedboolTrue 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

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)
ParameterTypeDescription
base64const System::String&X509Certificate2 as base64 string.
digestHashAlgorithmDigestHashAlgorithmThe digest algorithm to sign a document.

See Also