Package eu.europa.esig.dss.spi.x509
Class CertificateRef
java.lang.Object
eu.europa.esig.dss.spi.x509.CertificateRef
- All Implemented Interfaces:
IdentifierBasedObject
,Serializable
This class represents a Certificate Reference entry extracted from a signature
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the certificate digestGets theSignerIdentifier
(for a reference extracted from a signature or timestamp, when present)getDSSId()
Returns the certificate reference identifierReturns the certificate referenceString
idGets theResponderId
(for a reference extracted from an OCSP response)int
hashCode()
void
setCertDigest
(Digest certDigest) Sets the certificate digestvoid
setCertificateIdentifier
(SignerIdentifier signerIdentifier) Sets theSignerIdentifier
void
setResponderId
(ResponderId responderId) Sets theResponderId
toString()
-
Constructor Details
-
CertificateRef
public CertificateRef()Default constructor instantiating object with null values
-
-
Method Details
-
getCertDigest
Gets the certificate digest- Returns:
Digest
-
setCertDigest
Sets the certificate digest- Parameters:
certDigest
-Digest
-
getCertificateIdentifier
Gets theSignerIdentifier
(for a reference extracted from a signature or timestamp, when present)- Returns:
SignerIdentifier
-
setCertificateIdentifier
Sets theSignerIdentifier
- Parameters:
signerIdentifier
-SignerIdentifier
-
getResponderId
Gets theResponderId
(for a reference extracted from an OCSP response)- Returns:
SignerIdentifier
-
setResponderId
Sets theResponderId
- Parameters:
responderId
-ResponderId
-
getDSSId
Returns the certificate reference identifier- Specified by:
getDSSId
in interfaceIdentifierBasedObject
- Returns:
Identifier
-
getDSSIdAsString
Returns the certificate referenceString
id- Returns:
String
id
-
toString
-
equals
-
hashCode
public int hashCode()
-