public class OCSPReq extends 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(OCSPRequest req) |
Modifier and Type | Method and Description |
---|---|
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.
|
public OCSPReq(OCSPRequest req)
public OCSPReq(byte[] req) throws IOException
IOException
public int getVersion()
public GeneralName getRequestorName()
public Req[] getRequestList()
public boolean hasExtensions()
public X509Extension getExtension(ASN1ObjectIdentifier oid)
public List getExtensionOIDs()
public Set getCriticalExtensionOIDs()
public Set getNonCriticalExtensionOIDs()
public ASN1ObjectIdentifier getSignatureAlgOID()
public byte[] getSignature()
public X509CertificateHolder[] getCerts()
public boolean isSigned()
public boolean isSignatureValid(ContentVerifierProvider verifierProvider) throws OCSPException
OCSPException
public byte[] getEncoded() throws IOException
IOException
Copyright © 2015. All rights reserved.