Interface OcspResponse
public interface OcspResponse
A parsed OCSP response (RFC 6960), used to validate a generated/persisted OCSP
status object at a service boundary.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordOne certificate-status entry within an OCSP response. -
Method Summary
Modifier and TypeMethodDescriptionReturns the responder certificates embedded in the response, in order.booleanIndicates whether the response status issuccessful.Optional<byte[]> nonce()Returns the response nonce, if present.Returns theproducedAttime of the basic response.Returns the responder identity.Returns the individual certificate-status responses.Returns the signature algorithm identifier of the basic response.booleanverifySignature(PublicKey responderKey) Verifies the basic response signature under the responder public key.
-
Method Details
-
isSuccessful
boolean isSuccessful()Indicates whether the response status issuccessful.- Returns:
trueif successful
-
producedAt
Instant producedAt()Returns theproducedAttime of the basic response.- Returns:
- the production time
-
responderId
-
responses
List<OcspResponse.SingleResponse> responses()Returns the individual certificate-status responses.- Returns:
- the single responses
-
verifySignature
Verifies the basic response signature under the responder public key.- Parameters:
responderKey- the responder public key- Returns:
trueif the signature is valid
-
nonce
-
certificates
List<X509Certificate> certificates()Returns the responder certificates embedded in the response, in order.- Returns:
- the embedded certificates (possibly empty)
-
signatureAlgorithm
AlgorithmIdentifier signatureAlgorithm()Returns the signature algorithm identifier of the basic response.- Returns:
- the signature algorithm identifier
-