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.
Constructor and Description |
---|
PKCS7Detached()
Initializes new instance of the
PKCS7Detached class. |
PKCS7Detached(DigestHashAlgorithm digestHashAlgorithm)
Initializes new instance of the
PKCS7Detached class. |
PKCS7Detached(InputStream image)
Initializes new instance of the
PKCS7Detached class. |
PKCS7Detached(InputStream image,
DigestHashAlgorithm digestHashAlgorithm)
Initializes new instance of the
PKCS7Detached class. |
PKCS7Detached(InputStream pfx,
String password)
Inititalizes new instance of the
PKCS7Detached class. |
PKCS7Detached(String pfx,
String password)
Initializes new instance of the
PKCS7Detached class. |
PKCS7Detached(String pfx,
String password,
DigestHashAlgorithm digestHashAlgorithm)
Inititalizes new instance of the
PKCS7Detached class. |
close, getAuthority, getByteRange, getContactInfo, getCustomAppearance, getCustomSign, getCustomSignHash, getDate, getDefaultSignatureLength, getImageInternal, getLocation, getOcspSettings, getReason, getSignatureAlgorithmInfo, getSignatureReferences, getTimestampSettings, getUseLtv, isAvoidEstimatingSignatureLength, isShowProperties, setAuthority, setAvoidEstimatingSignatureLength, setContactInfo, setCustomAppearance, setCustomSign, setCustomSignHash, setDate, setDefaultSignatureLength, setImage, setImageInternal, setLocation, setOcspSettings, setReason, setShowProperties, setTimestampSettings, setUseLtv, verify, verify, verify
public PKCS7Detached(InputStream image)
Initializes new instance of the PKCS7Detached
class.
image
- This image will define signature appearance on the page.public PKCS7Detached(InputStream image, DigestHashAlgorithm digestHashAlgorithm)
Initializes new instance of the PKCS7Detached
class.
image
- This image will define signature appearance on the page.digestHashAlgorithm
- The digest algorithm to sign a document.public PKCS7Detached()
Initializes new instance of the PKCS7Detached
class.
public PKCS7Detached(DigestHashAlgorithm digestHashAlgorithm)
Initializes new instance of the PKCS7Detached
class.
digestHashAlgorithm
- The digest algorithm to sign a document.public PKCS7Detached(String pfx, String password)
Initializes new instance of the PKCS7Detached
class.
pfx
- Pfx file which contains certificate for signing.password
- Password to get access to the private key in the certificate.public PKCS7Detached(String pfx, String password, DigestHashAlgorithm digestHashAlgorithm)
Inititalizes new instance of the PKCS7Detached
class.
pfx
- Pfx file which contains certificate for signing.password
- Password to get access to the private key in the certificate.digestHashAlgorithm
- The digest algorithm to sign a document.public PKCS7Detached(InputStream pfx, String password)
Inititalizes new instance of the PKCS7Detached
class.
pfx
- Stream with certificate data organized as pfx.password
- Password to get access to the private key in the certificate.Copyright © 2025 Aspose. All Rights Reserved.