org.bouncycastle.ocsp
public class BasicOCSPResp extends Object implements X509Extension
BasicOCSPResponse ::= SEQUENCE { tbsResponseData ResponseData, signatureAlgorithm AlgorithmIdentifier, signature BIT STRING, certs [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL }
Constructor Summary | |
---|---|
BasicOCSPResp(BasicOCSPResponse resp) |
Method Summary | |
---|---|
boolean | equals(Object o) |
CertStore | getCertificates(String type, String provider)
Return the certificates, if any associated with the response. |
X509Certificate[] | getCerts(String provider) |
Set | getCriticalExtensionOIDs() |
byte[] | getEncoded()
return the ASN.1 encoded representation of this object. |
byte[] | getExtensionValue(String oid) |
Set | getNonCriticalExtensionOIDs() |
Date | getProducedAt() |
RespID | getResponderId() |
RespData | getResponseData() |
X509Extensions | getResponseExtensions() |
SingleResp[] | getResponses() |
byte[] | getSignature() |
String | getSignatureAlgName() |
String | getSignatureAlgOID() |
byte[] | getTBSResponseData()
Return the DER encoding of the tbsResponseData field. |
int | getVersion() |
int | hashCode() |
boolean | hasUnsupportedCriticalExtension()
RFC 2650 doesn't specify any critical extensions so we return true
if any are encountered.
|
boolean | verify(PublicKey key, String sigProvider)
verify the signature against the tbsResponseData object we contain. |
Parameters: type type of CertStore to create provider provider to use
Returns: a CertStore, possibly empty
Throws: NoSuchAlgorithmException NoSuchProviderException OCSPException
Deprecated: RespData class is no longer required as all functionality is available on this class.
Returns: the RespData object
Returns: DER encoding of tbsResponseData
Throws: OCSPException in the event of an encoding error.
Returns: true if any critical extensions are present.