public class BasicOCSPResp
extends java.lang.Object
implements org.bouncycastle.util.Encodable
BasicOCSPResponse ::= SEQUENCE {
tbsResponseData ResponseData,
signatureAlgorithm AlgorithmIdentifier,
signature BIT STRING,
certs [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL }
| Constructor and Description |
|---|
BasicOCSPResp(org.bouncycastle.asn1.ocsp.BasicOCSPResponse resp) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
X509CertificateHolder[] |
getCerts() |
java.util.Set |
getCriticalExtensionOIDs() |
byte[] |
getEncoded()
return the ASN.1 encoded representation of this object.
|
org.bouncycastle.asn1.x509.Extension |
getExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier oid) |
java.util.List |
getExtensionOIDs() |
java.util.Set |
getNonCriticalExtensionOIDs() |
java.util.Date |
getProducedAt() |
RespID |
getResponderId() |
SingleResp[] |
getResponses() |
byte[] |
getSignature() |
org.bouncycastle.asn1.ASN1ObjectIdentifier |
getSignatureAlgOID() |
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getSignatureAlgorithmID()
Return the algorithm identifier describing the signature used in the response.
|
byte[] |
getTBSResponseData()
Return the DER encoding of the tbsResponseData field.
|
int |
getVersion() |
boolean |
hasExtensions() |
int |
hashCode() |
boolean |
isSignatureValid(ContentVerifierProvider verifierProvider)
verify the signature against the tbsResponseData object we contain.
|
public BasicOCSPResp(org.bouncycastle.asn1.ocsp.BasicOCSPResponse resp)
public byte[] getTBSResponseData()
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getSignatureAlgorithmID()
public int getVersion()
public RespID getResponderId()
public java.util.Date getProducedAt()
public SingleResp[] getResponses()
public boolean hasExtensions()
public org.bouncycastle.asn1.x509.Extension getExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier oid)
public java.util.List getExtensionOIDs()
public java.util.Set getCriticalExtensionOIDs()
public java.util.Set getNonCriticalExtensionOIDs()
public org.bouncycastle.asn1.ASN1ObjectIdentifier getSignatureAlgOID()
public byte[] getSignature()
public X509CertificateHolder[] getCerts()
public boolean isSignatureValid(ContentVerifierProvider verifierProvider) throws OCSPException
OCSPExceptionpublic byte[] getEncoded()
throws java.io.IOException
getEncoded in interface org.bouncycastle.util.Encodablejava.io.IOExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object