Class CertificateRef

java.lang.Object
eu.europa.esig.dss.spi.x509.CertificateRef
All Implemented Interfaces:
IdentifierBasedObject, Serializable

public class CertificateRef extends Object implements IdentifierBasedObject, Serializable
This class represents a Certificate Reference entry extracted from a signature
See Also:
  • Constructor Details

    • CertificateRef

      public CertificateRef()
      Default constructor instantiating object with null values
  • Method Details

    • getCertDigest

      public Digest getCertDigest()
      Gets the certificate digest
      Returns:
      Digest
    • setCertDigest

      public void setCertDigest(Digest certDigest)
      Sets the certificate digest
      Parameters:
      certDigest - Digest
    • getCertificateIdentifier

      public SignerIdentifier getCertificateIdentifier()
      Gets the SignerIdentifier (for a reference extracted from a signature or timestamp, when present)
      Returns:
      SignerIdentifier
    • setCertificateIdentifier

      public void setCertificateIdentifier(SignerIdentifier signerIdentifier)
      Sets the SignerIdentifier
      Parameters:
      signerIdentifier - SignerIdentifier
    • getResponderId

      public ResponderId getResponderId()
      Gets the ResponderId (for a reference extracted from an OCSP response)
      Returns:
      SignerIdentifier
    • setResponderId

      public void setResponderId(ResponderId responderId)
      Sets the ResponderId
      Parameters:
      responderId - ResponderId
    • getDSSId

      public Identifier getDSSId()
      Returns the certificate reference identifier
      Specified by:
      getDSSId in interface IdentifierBasedObject
      Returns:
      Identifier
    • getDSSIdAsString

      public String getDSSIdAsString()
      Returns the certificate reference String id
      Returns:
      String id
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object