ExternalSignature

Inheritance: java.lang.Object, com.aspose.pdf.Signature

public class ExternalSignature extends Signature

Creates a detached PKCS#7Detached signature using a X509Certificate2. It supports usb smartcards, tokens without exportable private keys.

Constructors

ConstructorDescription
ExternalSignature(System.Security.Cryptography.X509Certificates.X509Certificate2 certificate)Creates a detached PKCS#7Detached signature using a X509Certificate2.

Methods

MethodDescription
getCertificate()The certificate with the private key.

ExternalSignature(System.Security.Cryptography.X509Certificates.X509Certificate2 certificate)

public ExternalSignature(System.Security.Cryptography.X509Certificates.X509Certificate2 certificate)

Creates a detached PKCS#7Detached signature using a X509Certificate2. It supports usb smartcards, tokens without exportable private keys.

Parameters:

ParameterTypeDescription
certificatecom.aspose.ms.System.Security.Cryptography.X509Certificates.X509Certificate2The certificate with the private key

getCertificate()

public final System.Security.Cryptography.X509Certificates.X509Certificate2 getCertificate()

The certificate with the private key.

Returns: com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Certificate2 - X509Certificate2 instance with the private key