public class BasicOCSPResp
extends java.lang.Object
implements java.security.cert.X509Extension
BasicOCSPResponse ::= SEQUENCE { tbsResponseData ResponseData, signatureAlgorithm AlgorithmIdentifier, signature BIT STRING, certs [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL }
Constructor and Description |
---|
BasicOCSPResp(BasicOCSPResponse resp)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Deprecated.
|
java.security.cert.CertStore |
getCertificates(java.lang.String type,
java.lang.String provider)
Deprecated.
Return the certificates, if any associated with the response.
|
java.security.cert.X509Certificate[] |
getCerts(java.lang.String provider)
Deprecated.
|
java.util.Set |
getCriticalExtensionOIDs()
Deprecated.
|
byte[] |
getEncoded()
Deprecated.
return the ASN.1 encoded representation of this object.
|
byte[] |
getExtensionValue(java.lang.String oid)
Deprecated.
|
java.util.Set |
getNonCriticalExtensionOIDs()
Deprecated.
|
java.util.Date |
getProducedAt()
Deprecated.
|
RespID |
getResponderId()
Deprecated.
|
RespData |
getResponseData()
Deprecated.
RespData class is no longer required as all functionality is
available on this class.
|
X509Extensions |
getResponseExtensions()
Deprecated.
|
SingleResp[] |
getResponses()
Deprecated.
|
byte[] |
getSignature()
Deprecated.
|
java.lang.String |
getSignatureAlgName()
Deprecated.
|
java.lang.String |
getSignatureAlgOID()
Deprecated.
|
byte[] |
getTBSResponseData()
Deprecated.
Return the DER encoding of the tbsResponseData field.
|
int |
getVersion()
Deprecated.
|
int |
hashCode()
Deprecated.
|
boolean |
hasUnsupportedCriticalExtension()
Deprecated.
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)
Deprecated.
verify the signature against the tbsResponseData object we contain.
|
public BasicOCSPResp(BasicOCSPResponse resp)
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 usejava.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