public interface PdfSignature
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_SIGNATURE_METHOD_OID
Configuration propery name for the signature method.
|
static String |
SIGNATURE_METHOD_ECDSA_SHA256
OID of the "ECDSA-SHA256" signature method.
|
static String |
SIGNATURE_METHOD_ECDSA_SHA384
OID of the "ECDSA-SHA384" signature method.
|
static String |
SIGNATURE_METHOD_ECDSA_SHA512
OID of the "ECDSA-SHA512" signature method.
|
static String |
SIGNATURE_METHOD_RSA_SHA1
OID of the "RSA-SHA1" signature method.
|
static String |
SIGNATURE_METHOD_RSA_SHA224
OID of the "RSA-SHA224" signature method.
|
static String |
SIGNATURE_METHOD_RSA_SHA256
OID of the "RSA-SHA256" signature method.
|
static String |
SIGNATURE_METHOD_RSA_SHA384
OID of the "RSA-SHA384" signature method.
|
static String |
SIGNATURE_METHOD_RSA_SHA512
OID of the "RSA-SHA512" signature method.
|
| Modifier and Type | Method and Description |
|---|---|
PdfBasicSignature |
basicSignature()
Prepares signature for BASIC profile
SignatureProfile.BASIC_SIGNATURE |
void |
complete()
Validates the signature integrity according to the profile requirements.
|
List<byte[]> |
getCerts()
Returns a list of ASN.1 encoded X509 certificates of the signature.
|
Date |
getClaimedSigningTime()
Returns claimed signing time of the signature.
|
List<byte[]> |
getCRLs()
Returns a list of ASN.1 encoded CRL of the signature.
|
byte[] |
getDocumentTimestamp()
Returns an ASN.1 encoded document timestamp of the signature.
|
String |
getId()
Returns ID of the signature of the document.
|
String |
getLocation()
Returns location of the signing.
|
List<byte[]> |
getOCSPs()
Returns a list of ASN.1 encoded OCSP responses of the signature.
|
SignatureProfile |
getProfile()
Returns profile of the signature.
|
String |
getReason()
Returns reason of the signing.
|
String |
getSignatureMethodAlgorithm()
Returns algorithm OID of the signature method.
|
byte[] |
getSignatureTimestamp()
Returns an ASN.1 encoded signature timestamp of the signature.
|
byte[] |
getSignatureValue()
Returns a signature value of the signature.
|
byte[] |
getSignatureValueDigest(String messageDigestAlgorithm)
Returns hash value of the signature value.
|
X509Certificate |
getSigningCertificate()
Returns signing certificate of the signature.
|
PdfQualifiedSignature |
qualifiedSignature()
Prepares signature for QUALIFIED profile
SignatureProfile.QUALIFIED_SIGNATURE |
static final String KEY_SIGNATURE_METHOD_OID
1.2.840.113549.1.1.5static final String SIGNATURE_METHOD_RSA_SHA1
static final String SIGNATURE_METHOD_RSA_SHA224
static final String SIGNATURE_METHOD_RSA_SHA256
static final String SIGNATURE_METHOD_RSA_SHA384
static final String SIGNATURE_METHOD_RSA_SHA512
static final String SIGNATURE_METHOD_ECDSA_SHA256
static final String SIGNATURE_METHOD_ECDSA_SHA384
static final String SIGNATURE_METHOD_ECDSA_SHA512
String getId()
SignatureProfile getProfile() throws PdfException
PdfException - if an error occurs.Date getClaimedSigningTime() throws PdfException
PdfException - if an error occurs.String getLocation() throws PdfException
PdfException - if an error occurs.String getReason() throws PdfException
PdfException - if an error occurs.byte[] getSignatureTimestamp()
throws PdfException
PdfException - if an error occurs.byte[] getDocumentTimestamp()
throws PdfException
PdfException - if an error occurs.List<byte[]> getOCSPs() throws PdfException
PdfException - if an error occurs.List<byte[]> getCRLs() throws PdfException
PdfException - if an error occurs.List<byte[]> getCerts() throws PdfException
PdfException - if an error occurs.byte[] getSignatureValue()
throws PdfException
PdfException - if an error occurs.X509Certificate getSigningCertificate() throws PdfException
PdfException - if an error occurs.String getSignatureMethodAlgorithm()
PdfBasicSignature basicSignature() throws PdfException
SignatureProfile.BASIC_SIGNATUREPdfException - if an error occurs.PdfQualifiedSignature qualifiedSignature() throws PdfException
SignatureProfile.QUALIFIED_SIGNATUREPdfException - if an error occurs.void complete()
throws PdfException
PdfException - if the signature is not completed.byte[] getSignatureValueDigest(String messageDigestAlgorithm) throws PdfException
messageDigestAlgorithm - digest algorithm name
See the MessageDigest section in the
Java Cryptography Architecture Standard Algorithm Name Documentation
for information about standard algorithm names. For example: SHA-1 or SHA-256PdfException - if no Provider supports a MessageDigestSpi implementation for the specified algorithm