public class ExternalSignature extends Signature
Creates a detached PKCS#7Detached signature using a X509Certificate2. It supports usb smartcards, tokens without exportable private keys.
| Modifier and Type | Field and Description |
|---|---|
com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Certificate2 |
Certificate
The certificate with the private key.
|
| Constructor and Description |
|---|
ExternalSignature(String base64,
boolean detached)
Creates a PKCS#7 (detached) signature using a X509Certificate2 as base64 string.
|
ExternalSignature(String base64,
DigestHashAlgorithm digestHashAlgorithm)
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(com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Certificate2 certificate,
DigestHashAlgorithm digestHashAlgorithm)
Creates a detached PKCS#7
(detached) signature using a X509Certificate2. |
ExternalSignature(X509Certificate certificate,
PrivateKey privateKey)
Deprecated.
|
ExternalSignature(X509Certificate certificate,
PrivateKey privateKey,
DigestHashAlgorithm digestHashAlgorithm)
Creates a detached PKCS#7
(detached) signature using a java.security.cert.X509Certificate and java.security.PrivateKey. |
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, verifypublic com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Certificate2 Certificate
The certificate with the private key.
@Deprecated public ExternalSignature(com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Certificate2 certificate)
Creates a detached PKCS#7 Detached signature using a X509Certificate2. It supports usb smartcards, tokens without exportable private keys.
The digest algorithm will be automatically selected based on the certificate key data.certificate - The certificate with the private keypublic ExternalSignature(com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Certificate2 certificate,
DigestHashAlgorithm digestHashAlgorithm)
Creates a detached PKCS#7 (detached) signature using a X509Certificate2. It supports usb smartcards, tokens without exportable private keys.
certificate - The certificate with the private key.digestHashAlgorithm - The digest algorithm to sign a document.public 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.@Deprecated public ExternalSignature(X509Certificate certificate, PrivateKey privateKey)
Creates a detached PKCS#7Detached signature using java.security.cert.X509Certificate and java.security.PrivateKey.
For detached set to false the digest algorithm will always beSHA1.
Otherwise, the digest algorithm will be automatically selected based on the certificate key data( see {DigestHashAlgorithm#Auto} ).certificate - The certificateprivateKey - The Private key.public ExternalSignature(X509Certificate certificate, PrivateKey privateKey, DigestHashAlgorithm digestHashAlgorithm)
Creates a detached PKCS#7 (detached) signature using a java.security.cert.X509Certificate and java.security.PrivateKey.
certificate - The certificateprivateKey - The Private key.digestHashAlgorithm - The digest algorithm to sign a document.public ExternalSignature(String base64, DigestHashAlgorithm digestHashAlgorithm)
Creates a PKCS#7 (detached) signature using a X509Certificate2 as base64 string.
base64 - X509Certificate2 as base64 string.digestHashAlgorithm - The digest algorithm to sign a document.Copyright © 2025 Aspose. All Rights Reserved.