public class OCSPReq
extends java.lang.Object
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 }
Constructor and Description |
---|
OCSPReq(byte[] req) |
OCSPReq(org.bouncycastle.asn1.ocsp.OCSPRequest req) |
Modifier and Type | Method and Description |
---|---|
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() |
Req[] |
getRequestList() |
org.bouncycastle.asn1.x509.GeneralName |
getRequestorName() |
byte[] |
getSignature() |
org.bouncycastle.asn1.ASN1ObjectIdentifier |
getSignatureAlgOID()
return the object identifier representing the signature algorithm
|
int |
getVersionNumber() |
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.
|
public OCSPReq(org.bouncycastle.asn1.ocsp.OCSPRequest req)
public OCSPReq(byte[] req) throws java.io.IOException
java.io.IOException
public int getVersionNumber()
public org.bouncycastle.asn1.x509.GeneralName getRequestorName()
public Req[] getRequestList()
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 isSigned()
public boolean isSignatureValid(ContentVerifierProvider verifierProvider) throws OCSPException
OCSPException
public byte[] getEncoded() throws java.io.IOException
java.io.IOException