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
ConstructorsConstructorDescriptionResponderId(X500Principal subjectX500Principal, byte[] ski) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]getSki()Gets the SKI of the issuerGetsX500Principalof the OCSP issuerinthashCode()booleanisRelatedToCertificate(CertificateToken certificateToken) Checks if the ResponderId is related to a provided certificateTokenvoidsetSki(byte[] ski) Sets the SKI of the issuervoidsetX500Principal(X500Principal subjectX500Principal) SetsX500Principalof the OCSP issuer
-
Constructor Details
-
ResponderId
Default constructor- Parameters:
subjectX500Principal-X500Principalski- byte array
-
-
Method Details
-
getX500Principal
GetsX500Principalof the OCSP issuer- Returns:
X500Principal
-
setX500Principal
SetsX500Principalof 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-CertificateTokento check- Returns:
- TRUE if the certificateToken is related to the ResponderId, FALSE otherwise
-
hashCode
-
equals
-