Package org.bouncycastle.cert.ocsp
Class BasicOCSPResp
java.lang.Object
org.bouncycastle.cert.ocsp.BasicOCSPResp
- All Implemented Interfaces:
Encodable
OCSP RFC 2560, RFC 6960
BasicOCSPResponse ::= SEQUENCE {
tbsResponseData ResponseData,
signatureAlgorithm AlgorithmIdentifier,
signature BIT STRING,
certs [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL }
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCerts()byte[]return the ASN.1 encoded representation of this object.byte[]Return the algorithm identifier describing the signature used in the response.byte[]Return the DER encoding of the tbsResponseData field.intbooleaninthashCode()booleanisSignatureValid(ContentVerifierProvider verifierProvider) verify the signature against the tbsResponseData object we contain.
-
Constructor Details
-
BasicOCSPResp
-
-
Method Details
-
getTBSResponseData
public byte[] getTBSResponseData()Return the DER encoding of the tbsResponseData field.- Returns:
- DER encoding of tbsResponseData
-
getSignatureAlgorithmID
Return the algorithm identifier describing the signature used in the response.- Returns:
- an AlgorithmIdentifier
-
getVersion
public int getVersion() -
getResponderId
-
getProducedAt
-
getResponses
-
hasExtensions
public boolean hasExtensions() -
getExtension
-
getExtensionOIDs
-
getCriticalExtensionOIDs
-
getNonCriticalExtensionOIDs
-
getSignatureAlgOID
-
getSignature
public byte[] getSignature() -
getCerts
-
isSignatureValid
verify the signature against the tbsResponseData object we contain.- Throws:
OCSPException
-
getEncoded
return the ASN.1 encoded representation of this object.- Specified by:
getEncodedin interfaceEncodable- Returns:
- a byte array representing the encoding.
- Throws:
IOException- if an issue arises generation the encoding.
-
equals
-
hashCode
public int hashCode()
-