|
Bouncy Castle Cryptography Library 1.37 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.ocsp.BasicOCSPResp
public class BasicOCSPResp
BasicOCSPResponse ::= SEQUENCE { tbsResponseData ResponseData, signatureAlgorithm AlgorithmIdentifier, signature BIT STRING, certs [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL }
Constructor Summary | |
---|---|
BasicOCSPResp(BasicOCSPResponse resp)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.security.cert.CertStore |
getCertificates(java.lang.String type,
java.lang.String provider)
Return the certificates, if any associated with the response. |
java.security.cert.X509Certificate[] |
getCerts(java.lang.String provider)
|
java.util.Set |
getCriticalExtensionOIDs()
|
byte[] |
getEncoded()
return the ASN.1 encoded representation of this object. |
byte[] |
getExtensionValue(java.lang.String oid)
|
java.util.Set |
getNonCriticalExtensionOIDs()
|
java.util.Date |
getProducedAt()
|
RespID |
getResponderId()
|
RespData |
getResponseData()
Deprecated. RespData class is no longer required as all functionality is available on this class. |
X509Extensions |
getResponseExtensions()
|
SingleResp[] |
getResponses()
|
byte[] |
getSignature()
|
java.lang.String |
getSignatureAlgName()
|
java.lang.String |
getSignatureAlgOID()
|
byte[] |
getTBSResponseData()
Return the DER encoding of the tbsResponseData field. |
int |
getVersion()
|
int |
hashCode()
|
boolean |
hasUnsupportedCriticalExtension()
RFC 2650 doesn't specify any critical extensions so we return true if any are encountered. |
boolean |
verify(java.security.PublicKey key,
java.lang.String sigProvider)
verify the signature against the tbsResponseData object we contain. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicOCSPResp(BasicOCSPResponse resp)
Method Detail |
---|
public byte[] getTBSResponseData() throws OCSPException
OCSPException
- in the event of an encoding error.public int getVersion()
public RespID getResponderId()
public java.util.Date getProducedAt()
public SingleResp[] getResponses()
public X509Extensions getResponseExtensions()
public boolean hasUnsupportedCriticalExtension()
hasUnsupportedCriticalExtension
in interface java.security.cert.X509Extension
public java.util.Set getCriticalExtensionOIDs()
getCriticalExtensionOIDs
in interface java.security.cert.X509Extension
public java.util.Set getNonCriticalExtensionOIDs()
getNonCriticalExtensionOIDs
in interface java.security.cert.X509Extension
public byte[] getExtensionValue(java.lang.String oid)
getExtensionValue
in interface java.security.cert.X509Extension
public java.lang.String getSignatureAlgName()
public java.lang.String getSignatureAlgOID()
public RespData getResponseData()
public byte[] getSignature()
public java.security.cert.X509Certificate[] getCerts(java.lang.String provider) throws OCSPException, java.security.NoSuchProviderException
OCSPException
java.security.NoSuchProviderException
public java.security.cert.CertStore getCertificates(java.lang.String type, java.lang.String provider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, OCSPException
type
- type of CertStore to createprovider
- provider to use
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
OCSPException
public boolean verify(java.security.PublicKey key, java.lang.String sigProvider) throws OCSPException, java.security.NoSuchProviderException
OCSPException
java.security.NoSuchProviderException
public byte[] getEncoded() throws java.io.IOException
java.io.IOException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
Bouncy Castle Cryptography Library 1.37 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |