BasicOCSPResponse ::= SEQUENCE {
tbsResponseData ResponseData,
signatureAlgorithm AlgorithmIdentifier,
signature BIT STRING,
certs [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL }
equals
public boolean equals(Object o)
getCertificates
public CertStore getCertificates(String type,
String provider)
throws NoSuchAlgorithmException,
NoSuchProviderException,
OCSPException
Return the certificates, if any associated with the response.
type
- type of CertStore to createprovider
- provider to use
- a CertStore, possibly empty
getCerts
public X509Certificate[] getCerts(String provider)
throws OCSPException,
NoSuchProviderException
getCriticalExtensionOIDs
public Set getCriticalExtensionOIDs()
getEncoded
public byte[] getEncoded()
throws IOException
return the ASN.1 encoded representation of this object.
getExtensionValue
public byte[] getExtensionValue(String oid)
getNonCriticalExtensionOIDs
public Set getNonCriticalExtensionOIDs()
getProducedAt
public Date getProducedAt()
getResponderId
public RespID getResponderId()
getResponseData
public RespData getResponseData()
RespData class is no longer required as all functionality is
available on this class.
getSignature
public byte[] getSignature()
getSignatureAlgOID
public String getSignatureAlgOID()
getTBSResponseData
public byte[] getTBSResponseData()
throws OCSPException
Return the DER encoding of the tbsResponseData field.
- DER encoding of tbsResponseData
getVersion
public int getVersion()
hasUnsupportedCriticalExtension
public boolean hasUnsupportedCriticalExtension()
RFC 2650 doesn't specify any critical extensions so we return true
if any are encountered.
- true if any critical extensions are present.
hashCode
public int hashCode()
verify
public boolean verify(PublicKey key,
String sigProvider)
throws OCSPException,
NoSuchProviderException
verify the signature against the tbsResponseData object we contain.