Class CertificateRefWrapper

java.lang.Object
eu.europa.esig.dss.diagnostic.CertificateRefWrapper

public class CertificateRefWrapper extends Object
Represents a certificate reference wrapper
  • Constructor Details

    • CertificateRefWrapper

      public CertificateRefWrapper(XmlCertificateRef certificateRef, String certificateId)
      Default constructor
      Parameters:
      certificateRef - XmlCertificateRef
      certificateId - String Id of the related certificate
  • Method Details

    • getOrigin

      public CertificateRefOrigin getOrigin()
      Returns a certificate reference origin
      Returns:
      CertificateRefOrigin
    • getIssuerSerial

      public byte[] getIssuerSerial()
      Returns IssuerSerial's binaries
      Returns:
      a byte array
    • isIssuerSerialPresent

      public boolean isIssuerSerialPresent()
      Returns of IssuerSerial is present within the certificate reference
      Returns:
      TRUE if IssuerSerial is present, FALSE otherwise
    • isIssuerSerialMatch

      public boolean isIssuerSerialMatch()
      Returns of IssuerSerial match with a found certificate
      Returns:
      TRUE if IssuerSerial matches with a found certificate , FALSE otherwise
    • getIssuerName

      public String getIssuerName()
      Returns IssuerName
      Returns:
      String
    • getSki

      public byte[] getSki()
      Returns SKI of the certificate (SHA-1 of the certificate's public key)
      Returns:
      a byte array
    • getDigestAlgoAndValue

      public XmlDigestAlgoAndValue getDigestAlgoAndValue()
      Returns digest algo and value
      Returns:
      XmlDigestAlgoAndValue
    • isDigestValuePresent

      public boolean isDigestValuePresent()
      Checks if the DigestAlgoAndValue of the reference present in the certificate reference
      Returns:
      TRUE if DigestAlgoAndValue present in the certificate reference, FALSE otherwise
    • getDigestMethod

      public DigestAlgorithm getDigestMethod()
      Returns a used DigestAlgorithm for a certificate reference creation
      Returns:
      DigestAlgorithm
    • isDigestValueMatch

      public boolean isDigestValueMatch()
      Checks if the DigestAlgoAndValue of the reference matches one of the certificate
      Returns:
      TRUE if DigestAlgoAndValue matches the certificate, FALSE otherwise
    • getCertificateId

      public String getCertificateId()
      Returns Id of the referenced certificate token (when available) or the reference id
      Returns:
      String
    • toString

      public String toString()
      Overrides:
      toString in class Object