Package eu.europa.esig.dss.spi.x509
Class ResponderId
java.lang.Object
eu.europa.esig.dss.spi.x509.ResponderId
- All Implemented Interfaces:
Serializable
This class represents a ResponderId extracted from an OCSP response
- See Also:
-
Constructor Summary
ConstructorDescriptionResponderId
(X500Principal subjectX500Principal, byte[] ski) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
byte[]
getSki()
Gets the SKI of the issuerGetsX500Principal
of the OCSP issuerint
hashCode()
boolean
isRelatedToCertificate
(CertificateToken certificateToken) Checks if the ResponderId is related to a provided certificateTokenvoid
setSki
(byte[] ski) Sets the SKI of the issuervoid
setX500Principal
(X500Principal subjectX500Principal) SetsX500Principal
of the OCSP issuer
-
Constructor Details
-
ResponderId
Default constructor- Parameters:
subjectX500Principal
-X500Principal
ski
- byte array
-
-
Method Details
-
getX500Principal
GetsX500Principal
of the OCSP issuer- Returns:
X500Principal
-
setX500Principal
SetsX500Principal
of the OCSP issuer- Parameters:
subjectX500Principal
-X500Principal
-
getSki
public byte[] getSki()Gets the SKI of the issuer- Returns:
- byte array
-
setSki
public void setSki(byte[] ski) Sets the SKI of the issuer- Parameters:
ski
- byte array
-
isRelatedToCertificate
Checks if the ResponderId is related to a provided certificateToken- Parameters:
certificateToken
-CertificateToken
to check- Returns:
- TRUE if the certificateToken is related to the ResponderId, FALSE otherwise
-
hashCode
public int hashCode() -
equals
-