public class

BasicOCSPResp

extends Object
implements X509Extension
java.lang.Object
   ↳ org.bouncycastle.ocsp.BasicOCSPResp

Class Overview

 BasicOCSPResponse       ::= SEQUENCE {
    tbsResponseData      ResponseData,
    signatureAlgorithm   AlgorithmIdentifier,
    signature            BIT STRING,
    certs                [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL }
 

Summary

Public Constructors
BasicOCSPResp(BasicOCSPResponse resp)
Public Methods
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()
This method is deprecated. RespData class is no longer required as all functionality is available on this class.
X509Extensions getResponseExtensions()
SingleResp[] getResponses()
byte[] getSignature()
String getSignatureAlgName()
String getSignatureAlgOID()
byte[] getTBSResponseData()
Return the DER encoding of the tbsResponseData field.
int getVersion()
boolean hasUnsupportedCriticalExtension()
RFC 2650 doesn't specify any critical extensions so we return true if any are encountered.
int hashCode()
boolean verify(PublicKey key, String sigProvider)
verify the signature against the tbsResponseData object we contain.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.security.cert.X509Extension

Public Constructors

public BasicOCSPResp (BasicOCSPResponse resp)

Public Methods

public boolean equals (Object o)

public CertStore getCertificates (String type, String provider)

Return the certificates, if any associated with the response.

Parameters
type type of CertStore to create
provider provider to use
Returns
  • a CertStore, possibly empty
Throws
NoSuchAlgorithmException
NoSuchProviderException
OCSPException
NoSuchAlgorithmException
NoSuchProviderException

public Set getCriticalExtensionOIDs ()

public byte[] getEncoded ()

return the ASN.1 encoded representation of this object.

Throws
IOException

public byte[] getExtensionValue (String oid)

public Set getNonCriticalExtensionOIDs ()

public Date getProducedAt ()

public RespID getResponderId ()

public RespData getResponseData ()

This method is deprecated.
RespData class is no longer required as all functionality is available on this class.

Returns
  • the RespData object

public X509Extensions getResponseExtensions ()

public SingleResp[] getResponses ()

public byte[] getSignature ()

public String getSignatureAlgName ()

public String getSignatureAlgOID ()

public byte[] getTBSResponseData ()

Return the DER encoding of the tbsResponseData field.

Returns
  • DER encoding of tbsResponseData
Throws
OCSPException in the event of an encoding error.

public int getVersion ()

public boolean hasUnsupportedCriticalExtension ()

RFC 2650 doesn't specify any critical extensions so we return true if any are encountered.

Returns
  • true if any critical extensions are present.

public int hashCode ()

public boolean verify (PublicKey key, String sigProvider)

verify the signature against the tbsResponseData object we contain.