Class RevocationWrapper

java.lang.Object
eu.europa.esig.dss.diagnostic.AbstractTokenProxy
eu.europa.esig.dss.diagnostic.RevocationWrapper
All Implemented Interfaces:
TokenProxy
Direct Known Subclasses:
CertificateRevocationWrapper, RelatedRevocationWrapper

public class RevocationWrapper extends AbstractTokenProxy
Revocation wrapper containing common revocation information
  • Constructor Details

    • RevocationWrapper

      public RevocationWrapper(XmlRevocation revocation)
      Default constructor
      Parameters:
      revocation - XmlRevocation
  • Method Details

    • getId

      public String getId()
      Description copied from interface: TokenProxy
      Returns the unique identifier of the object
      Returns:
      String id
    • getCurrentBasicSignature

      protected XmlBasicSignature getCurrentBasicSignature()
      Description copied from class: AbstractTokenProxy
      Returns a basic signature validation
      Specified by:
      getCurrentBasicSignature in class AbstractTokenProxy
      Returns:
      XmlBasicSignature
    • getCurrentCertificateChain

      protected List<XmlChainItem> getCurrentCertificateChain()
      Description copied from class: AbstractTokenProxy
      Returns the token's certificate chain
      Specified by:
      getCurrentCertificateChain in class AbstractTokenProxy
      Returns:
      a list of XmlChainItems
    • getCurrentSigningCertificate

      protected XmlSigningCertificate getCurrentSigningCertificate()
      Description copied from class: AbstractTokenProxy
      Returns the signing certificate of the token
      Specified by:
      getCurrentSigningCertificate in class AbstractTokenProxy
      Returns:
      XmlSigningCertificate
    • foundCertificates

      public FoundCertificatesProxy foundCertificates()
      Returns FoundCertificatesProxy to access embedded certificates
      Specified by:
      foundCertificates in interface TokenProxy
      Overrides:
      foundCertificates in class AbstractTokenProxy
      Returns:
      FoundCertificatesProxy
    • getProductionDate

      public Date getProductionDate()
      Returns the revocation data production time
      Returns:
      Date
    • getThisUpdate

      public Date getThisUpdate()
      Returns the revocation data ThisUpdate time
      Returns:
      Date
    • getNextUpdate

      public Date getNextUpdate()
      Returns the revocation data NextUpdate time
      Returns:
      Date
    • getExpiredCertsOnCRL

      public Date getExpiredCertsOnCRL()
      Returns the expired-certs-on-crl attribute time, when present
      Returns:
      Date
    • getArchiveCutOff

      public Date getArchiveCutOff()
      Returns the archive-cut-off attribute time, when present
      Returns:
      Date
    • isCertHashExtensionPresent

      public boolean isCertHashExtensionPresent()
      Gets if a certHash extension if present
      Returns:
      TRUE if certHash extension is present, FALSE otherwise
    • isCertHashExtensionMatch

      public boolean isCertHashExtensionMatch()
      Gets if a certHash extension matches to the hash of the concerned certificate
      Returns:
      TRUE if certHash matches, FALSE otherwise
    • getOrigin

      public eu.europa.esig.dss.enumerations.RevocationOrigin getOrigin()
      Returns the origin of the revocation token
      Returns:
      RevocationOrigin
    • getRevocationType

      public eu.europa.esig.dss.enumerations.RevocationType getRevocationType()
      Returns the revocation data type
      Returns:
      RevocationType
    • getBinaries

      public byte[] getBinaries()
      Description copied from class: AbstractTokenProxy
      Returns binaries of the token, when present
      Specified by:
      getBinaries in class AbstractTokenProxy
      Returns:
      a byte array
    • getDigestAlgoAndValue

      public XmlDigestAlgoAndValue getDigestAlgoAndValue()
      Returns the digest of the revocation token
      Returns:
      XmlDigestAlgoAndValue
    • isInternalRevocationOrigin

      public boolean isInternalRevocationOrigin()
      Returns true if the Revocation data was obtained from a signature container
      Returns:
      true if the revocation origin is internal, false otherwise
    • getSourceAddress

      public String getSourceAddress()
      Returns the remote URI used to obtain the revocation data
      Returns:
      String
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractTokenProxy
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class AbstractTokenProxy