Class OrphanCertificateTokenWrapper

java.lang.Object
eu.europa.esig.dss.diagnostic.OrphanTokenWrapper<XmlOrphanCertificateToken>
eu.europa.esig.dss.diagnostic.OrphanCertificateTokenWrapper
Direct Known Subclasses:
OrphanCertificateWrapper

public class OrphanCertificateTokenWrapper extends OrphanTokenWrapper<XmlOrphanCertificateToken>
Wrapper class for XML orphan certificate
  • Constructor Details

  • Method Details

    • getCertificateDN

      public String getCertificateDN()
      Returns the certificate's Distinguished Name (by RFC 2253)
      Returns:
      String
    • getCertificateIssuerDN

      public String getCertificateIssuerDN()
      Returns the certificate issuer's Distinguished Name (by RFC 2253)
      Returns:
      String
    • getSerialNumber

      public String getSerialNumber()
      Returns the serial number of the certificate
      Returns:
      String
    • getNotBefore

      public Date getNotBefore()
      Returns the certificate's notBefore date (the date the certificate cannot be used before)
      Returns:
      Date notBefore
    • getNotAfter

      public Date getNotAfter()
      Returns the certificate's notAfter date (the date the certificate cannot be used after)
      Returns:
      Date notAfter
    • getEntityKey

      public String getEntityKey()
      Returns a string identifier of the certificate's public key
      Returns:
      String public key's identifier
    • isTrusted

      public boolean isTrusted()
      Returns if the certificate is trusted
      Returns:
      TRUE if the certificate is trusted, FALSE otherwise
    • isSelfSigned

      public boolean isSelfSigned()
      Returns if the certificate is self-signed
      Returns:
      TRUE if the certificate is self-signed, FALSE otherwise
    • getBinaries

      public byte[] getBinaries()
      Description copied from class: OrphanTokenWrapper
      Returns base64-encoded byte array of the token
      Specified by:
      getBinaries in class OrphanTokenWrapper<XmlOrphanCertificateToken>
      Returns:
      byte array
    • getDigestAlgoAndValue

      public XmlDigestAlgoAndValue getDigestAlgoAndValue()
      Description copied from class: OrphanTokenWrapper
      Returns digest of the token
      Specified by:
      getDigestAlgoAndValue in class OrphanTokenWrapper<XmlOrphanCertificateToken>
      Returns:
      XmlDigestAlgoAndValue