Package org.digidoc4j.impl.asic.xades
Interface XadesSignature
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
BesSignature
,DssXadesSignature
,EpesSignature
,LongTermArchiveSignature
,LongTermSignature
,TimemarkSignature
,TimestampSignature
XadesSignature interface.
-
Method Summary
Modifier and TypeMethodDescriptiongetCity()
This method returns city name(string object), it can be empty.This method returns country name(string object), it can be empty.eu.europa.esig.dss.xades.validation.XAdESSignature
This method returns XAdES signature(XAdESSignature object).getId()
This method returns signature id(string object).Returns the signature OCSP responder certificate.byte[]
This method returns the signature OCSP response nonce ornull
if OCSP response is not present or OCSP nonce is not found inside the OCSP response.Deprecated.List
<org.bouncycastle.cert.ocsp.BasicOCSPResp> Returns the signature OCSP responses list.This method returns postal code(string object), it can be empty.This method returns signature profile(SignatureProfile object).List
<org.apache.xml.security.signature.Reference> This method returns references list(reference object).This method returns signature method's name(string object), it can be empty.byte[]
This method returns signature value(byte object).This method returns signer roles(string list), it can be empty.This method returns X509Cert object and it can be null.This method returns Date object, it can be null.This method returns state or province(string object), it can be empty.Returns the signature timestamp generation time.Returns the signature TimeStampToken certificate.Returns signature creation time confirmed by OCSP or TimeStamp authority.This method returns the identifier that uniquely identifies this signature.validate()
Validates the signature.validateAt
(Date validationTime) Validates signature against the specified validation time.
-
Method Details
-
getId
String getId()This method returns signature id(string object).- Returns:
- signature id.
-
getUniqueId
String getUniqueId()This method returns the identifier that uniquely identifies this signature.- Returns:
- unique identifier.
-
getCity
String getCity()This method returns city name(string object), it can be empty.- Returns:
- city.
-
getStateOrProvince
String getStateOrProvince()This method returns state or province(string object), it can be empty.- Returns:
- state or province.
-
getPostalCode
String getPostalCode()This method returns postal code(string object), it can be empty.- Returns:
- postal code.
-
getCountryName
String getCountryName()This method returns country name(string object), it can be empty.- Returns:
- country name.
-
getSignerRoles
This method returns signer roles(string list), it can be empty.- Returns:
- signer roles list.
-
getSigningCertificate
X509Cert getSigningCertificate()This method returns X509Cert object and it can be null.- Returns:
- X509Cert
-
getProfile
SignatureProfile getProfile()This method returns signature profile(SignatureProfile object).- Returns:
- signature profile.
-
getSignatureMethod
String getSignatureMethod()This method returns signature method's name(string object), it can be empty.- Returns:
- signature method's name.
-
getSigningTime
Date getSigningTime()This method returns Date object, it can be null.- Returns:
- Date
-
getTrustedSigningTime
Date getTrustedSigningTime()Returns signature creation time confirmed by OCSP or TimeStamp authority. 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 thatSignature.getClaimedSigningTime()
returns.- Returns:
- signature creation time confirmed by OCSP or TimeStamp authority.
-
getOCSPResponseCreationTime
Date getOCSPResponseCreationTime()Deprecated.useSignature.getOCSPResponseCreationTime()
instead. Will be removed in the future.Returns the signature OCSP producedAt timestamp.- Returns:
- producedAt timestamp
-
getOCSPCertificate
X509Cert getOCSPCertificate()Returns the signature OCSP responder certificate.- Returns:
- OCSP responder certificate
-
getOcspResponses
List<org.bouncycastle.cert.ocsp.BasicOCSPResp> getOcspResponses()Returns the signature OCSP responses list.- Returns:
- OCSP responses list.
-
getTimeStampCreationTime
Date getTimeStampCreationTime()Returns the signature timestamp generation time.- Returns:
- generation timestamp
-
getTimeStampTokenCertificate
X509Cert getTimeStampTokenCertificate()Returns the signature TimeStampToken certificate. For a DDOC Signature it throws a NotYetImplementedException.- Returns:
- TimeStampToken certificate
-
getReferences
List<org.apache.xml.security.signature.Reference> getReferences()This method returns references list(reference object).- Returns:
- reference list.
-
getSignatureValue
byte[] getSignatureValue()This method returns signature value(byte object).- Returns:
- signature value.
-
getDssSignature
eu.europa.esig.dss.xades.validation.XAdESSignature getDssSignature()This method returns XAdES signature(XAdESSignature object).- Returns:
- XAdESSignature.
-
validate
XadesValidationResult validate()Validates the signature.- Returns:
- the validation result.
-
validateAt
Validates signature against the specified validation time.- Parameters:
validationTime
- validation time- Returns:
- validation result
-
getOCSPNonce
byte[] getOCSPNonce()This method returns the signature OCSP response nonce ornull
if OCSP response is not present or OCSP nonce is not found inside the OCSP response.- Returns:
- OCSP response nonce or
null
if not found
-
Signature.getOCSPResponseCreationTime()
instead.