PKCS7Detached

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

public final class PKCS7Detached extends Signature

Represents the PKCS#7 object that conform to the PKCS#7 specification in Internet RFC 2315, PKCS #7: Cryptographic Message Syntax, Version 1.5. The original signed message digest over the document’s byte range is incorporated as the normal PKCS#7 SignedData field. No data shall is encapsulated in the PKCS#7 SignedData field.

Constructors

ConstructorDescription
PKCS7Detached(InputStream image)Initializes new instance of the PKCS7Detached class.
PKCS7Detached()Inititalizes new instance of the PKCS7Detached class.
PKCS7Detached(String pfx, String password)Inititalizes new instance of the PKCS7Detached class.
PKCS7Detached(InputStream pfx, String password)Inititalizes new instance of the PKCS7Detached class.

PKCS7Detached(InputStream image)

public PKCS7Detached(InputStream image)

Initializes new instance of the PKCS7Detached class.

Parameters:

ParameterTypeDescription
imagejava.io.InputStreamThis image will define signature appearance on the page.

PKCS7Detached()

public PKCS7Detached()

Inititalizes new instance of the PKCS7Detached class.

PKCS7Detached(String pfx, String password)

public PKCS7Detached(String pfx, String password)

Inititalizes new instance of the PKCS7Detached class.

Parameters:

ParameterTypeDescription
pfxjava.lang.StringPfx file which contains certificate for signing.
passwordjava.lang.StringPassword to get access to the private key in the certificate.

PKCS7Detached(InputStream pfx, String password)

public PKCS7Detached(InputStream pfx, String password)

Inititalizes new instance of the PKCS7Detached class.

Parameters:

ParameterTypeDescription
pfxjava.io.InputStreamStream with certificate data organized as pfx.
passwordjava.lang.StringPassword to get access to the private key in the certificate.