public class ExternalSignature extends Signature
Creates a detached PKCS#7Detached signature using a X509Certificate2. It supports usb smartcards, tokens without exportable private keys.
Constructor and Description |
---|
ExternalSignature(String base64,
boolean detached)
Creates a PKCS#7 (detached) signature using a X509Certificate2 as base64 string.
|
ExternalSignature(com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Certificate2 certificate)
Deprecated.
|
ExternalSignature(com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Certificate2 certificate,
boolean detached)
Creates a detached PKCS#7Detached signature using a X509Certificate2.
|
ExternalSignature(X509Certificate certificate,
PrivateKey privateKey)
Creates a detached PKCS#7Detached signature using java.security.cert.X509Certificate and java.security.PrivateKey.
|
Modifier and Type | Method and Description |
---|---|
com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Certificate2 |
getCertificate()
The certificate with the private key.
|
close, getAuthority, getByteRange, getContactInfo, getCustomAppearance, getCustomSignHash, getDate, getImageInternal, getLocation, getOcspSettings, getReason, getSignatureReferences, getTimestampSettings, getUseLtv, isShowProperties, setAuthority, setContactInfo, setCustomAppearance, setCustomSignHash, setDate, setImage, setImageInternal, setLocation, setOcspSettings, setReason, setShowProperties, setTimestampSettings, setUseLtv, verify
@Deprecated public ExternalSignature(com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Certificate2 certificate)
Creates a detached PKCS#7Detached signature using a X509Certificate2. It supports usb smartcards, tokens without exportable private keys.
certificate
- The certificate with the private keypublic ExternalSignature(com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, boolean detached)
Creates a detached PKCS#7Detached signature using a X509Certificate2. It supports usb smartcards, tokens without exportable private keys.
certificate
- The certificate with the private key.detached
- True if the signature should be detached, otherwise false.public ExternalSignature(String base64, boolean detached)
Creates a PKCS#7 (detached) signature using a X509Certificate2 as base64 string.
base64
- X509Certificate2 as base64 string.detached
- True if the signature should be detached, otherwise false.public ExternalSignature(X509Certificate certificate, PrivateKey privateKey)
Creates a detached PKCS#7Detached signature using java.security.cert.X509Certificate and java.security.PrivateKey.
certificate
- The certificateprivateKey
- The Private key.Copyright © 2024 Aspose. All Rights Reserved.