public interface Signature extends Serializable
Modifier and Type | Method and Description |
---|---|
byte[] |
getAdESSignature()
Returns signature as XAdES XML
|
String |
getCity()
Returns the signature production city.
|
Date |
getClaimedSigningTime()
Returns the computer's time of signing.
|
String |
getCountryName()
Returns the signature production country.
|
String |
getId()
Returns the signature id.
|
X509Cert |
getOCSPCertificate()
Returns the signature OCSP responder certificate.
|
byte[] |
getOCSPNonce()
Returns the signature OCSP response nonce
or
null if OCSP response is not present or OCSP nonce is not found inside the OCSP response. |
Date |
getOCSPResponseCreationTime()
Returns the signature OCSP producedAt timestamp.
|
String |
getPostalCode()
Returns the signature production postal code.
|
SignatureProfile |
getProfile()
Returns the signature profile.
|
String |
getSignatureMethod()
Returns the signature method that was used for signing.
|
List<String> |
getSignerRoles()
Returns the signer's roles.
|
X509Cert |
getSigningCertificate()
Returns the signature certificate that was used for signing.
|
String |
getStateOrProvince()
Returns the signature production state or province.
|
Date |
getTimeStampCreationTime()
Returns the signature timestamp generation time.
|
X509Cert |
getTimeStampTokenCertificate()
Returns the signature TimeStampToken certificate.
|
Date |
getTrustedSigningTime()
Returns signature creation time confirmed by OCSP or TimeStamp authority.
|
String |
getUniqueId()
Returns the identifier that uniquely identifies this signature.
|
ValidationResult |
validateSignature()
Validates the signature.
|
String getCity()
String getCountryName()
String getId()
String getUniqueId()
byte[] getOCSPNonce()
null
if OCSP response is not present or OCSP nonce is not found inside the OCSP response.null
if not foundX509Cert getOCSPCertificate()
String getPostalCode()
Date getOCSPResponseCreationTime()
Date getTimeStampCreationTime()
Date getTrustedSigningTime()
Returns OCSP response creation time in case of LT_TM (TimeMark) signatures or Time Stamp creation time in case of LT/LTA (TimeStamp) signatures. Returns null for B_BES signatures.
This is much more secure than using signer's computer time that getClaimedSigningTime()
returns.
SignatureProfile getProfile()
String getSignatureMethod()
X509Cert getSigningCertificate()
Date getClaimedSigningTime()
See also getTrustedSigningTime()
String getStateOrProvince()
X509Cert getTimeStampTokenCertificate()
ValidationResult validateSignature()
byte[] getAdESSignature()
Copyright © 2024. All rights reserved.