Class OrphanTokenWrapper<T extends XmlOrphanToken>

java.lang.Object
eu.europa.esig.dss.diagnostic.OrphanTokenWrapper<T>
Type Parameters:
T - implementation of XmlOrphanToken
Direct Known Subclasses:
OrphanCertificateTokenWrapper, OrphanRevocationTokenWrapper

public abstract class OrphanTokenWrapper<T extends XmlOrphanToken> extends Object
Represents a wrapper class for an XML orphan token
  • Field Details

    • orphanToken

      protected final T extends XmlOrphanToken orphanToken
      Xml orphan token
  • Constructor Details

    • OrphanTokenWrapper

      protected OrphanTokenWrapper(T orphanToken)
      Default constructor
      Parameters:
      orphanToken - OrphanTokenWrapper
  • Method Details

    • getId

      public String getId()
      Returns identifier of the orphan token
      Returns:
      String id
    • getBinaries

      public abstract byte[] getBinaries()
      Returns base64-encoded byte array of the token
      Returns:
      byte array
    • getDigestAlgoAndValue

      public abstract XmlDigestAlgoAndValue getDigestAlgoAndValue()
      Returns digest of the token
      Returns:
      XmlDigestAlgoAndValue
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object