Interface XadesSignature

All Superinterfaces:
Serializable
All Known Implementing Classes:
BesSignature, DssXadesSignature, EpesSignature, LongTermArchiveSignature, LongTermSignature, TimemarkSignature, TimestampSignature

public interface XadesSignature extends Serializable
XadesSignature interface.
  • 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

      List<String> 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 that Signature.getClaimedSigningTime() returns.
      Returns:
      signature creation time confirmed by OCSP or TimeStamp authority.
    • getOCSPResponseCreationTime

      Date getOCSPResponseCreationTime()
      Deprecated.
      use Signature.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

      Validates the signature.
      Returns:
      the validation result.
    • validateAt

      XadesValidationResult validateAt(Date validationTime)
      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 or null 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