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)
ParameterTypeDescription
certificateX509Certificate2The certificate with the private key.

Remarks

The digest algorithm will be automatically selected based on the certificate key data.

See Also


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)
ParameterTypeDescription
certificateX509Certificate2The certificate with the private key.
digestHashAlgorithmDigestHashAlgorithmThe digest algorithm to sign a document.

See Also


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)
ParameterTypeDescription
certificateX509Certificate2The certificate with the private key.
detachedBooleanTrue 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


ExternalSignature(string, bool)

Creates a PKCS#7 signature using a X509Certificate2 as base64 string.

public ExternalSignature(string base64, bool detached)
ParameterTypeDescription
base64StringX509Certificate2 as base64 string.
detachedBooleanTrue 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


ExternalSignature(string, DigestHashAlgorithm)

Creates a PKCS#7 (detached) signature using a X509Certificate2 as base64 string.

public ExternalSignature(string base64, DigestHashAlgorithm digestHashAlgorithm)
ParameterTypeDescription
base64StringX509Certificate2 as base64 string.
digestHashAlgorithmDigestHashAlgorithmThe digest algorithm to sign a document.

See Also