public class

OCSPReq

extends Object
java.lang.Object
   ↳ org.bouncycastle.cert.ocsp.OCSPReq

Class Overview

 OCSPRequest     ::=     SEQUENCE {
       tbsRequest                  TBSRequest,
       optionalSignature   [0]     EXPLICIT Signature OPTIONAL }

   TBSRequest      ::=     SEQUENCE {
       version             [0]     EXPLICIT Version DEFAULT v1,
       requestorName       [1]     EXPLICIT GeneralName OPTIONAL,
       requestList                 SEQUENCE OF Request,
       requestExtensions   [2]     EXPLICIT Extensions OPTIONAL }

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

   Version         ::=             INTEGER  {  v1(0) }

   Request         ::=     SEQUENCE {
       reqCert                     CertID,
       singleRequestExtensions     [0] EXPLICIT Extensions OPTIONAL }

   CertID          ::=     SEQUENCE {
       hashAlgorithm       AlgorithmIdentifier,
       issuerNameHash      OCTET STRING, -- Hash of Issuer's DN
       issuerKeyHash       OCTET STRING, -- Hash of Issuers public key
       serialNumber        CertificateSerialNumber }
 

Summary

Public Constructors
OCSPReq(OCSPRequest req)
OCSPReq(byte[] req)
Public Methods
X509CertificateHolder[] getCerts()
Set getCriticalExtensionOIDs()
byte[] getEncoded()
return the ASN.1 encoded representation of this object.
X509Extension getExtension(ASN1ObjectIdentifier oid)
List getExtensionOIDs()
Set getNonCriticalExtensionOIDs()
Req[] getRequestList()
GeneralName getRequestorName()
byte[] getSignature()
ASN1ObjectIdentifier getSignatureAlgOID()
return the object identifier representing the signature algorithm
int getVersion()
boolean hasExtensions()
boolean isSignatureValid(ContentVerifierProvider verifierProvider)
verify the signature against the TBSRequest object we contain.
boolean isSigned()
Return whether or not this request is signed.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public OCSPReq (OCSPRequest req)

public OCSPReq (byte[] req)

Throws
IOException

Public Methods

public X509CertificateHolder[] getCerts ()

public Set getCriticalExtensionOIDs ()

public byte[] getEncoded ()

return the ASN.1 encoded representation of this object.

Throws
IOException

public X509Extension getExtension (ASN1ObjectIdentifier oid)

public List getExtensionOIDs ()

public Set getNonCriticalExtensionOIDs ()

public Req[] getRequestList ()

public GeneralName getRequestorName ()

public byte[] getSignature ()

public ASN1ObjectIdentifier getSignatureAlgOID ()

return the object identifier representing the signature algorithm

public int getVersion ()

public boolean hasExtensions ()

public boolean isSignatureValid (ContentVerifierProvider verifierProvider)

verify the signature against the TBSRequest object we contain.

Throws
OCSPException

public boolean isSigned ()

Return whether or not this request is signed.

Returns
  • true if signed false otherwise.