public class SingleBasicResponse
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SingleBasicResponse.CertStatus
Implementation of the different status code of a SingleBasicResponse object.
|
| Constructor and Description |
|---|
SingleBasicResponse(CertID certID, SingleBasicResponse.CertStatus status, java.util.Date thisUpdate)
Creates a new
SingleBasicResponse given the certID and the certStatus. |
SingleBasicResponse(java.io.InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSingleRespExtension(X509Extension ext)
Adds an extension to this response.
|
CertID |
getCertID()
Returns the certID of this
SingleBasicResponse object. |
SingleBasicResponse.CertStatus |
getCertStatus()
Returns the status of this
SingleBasicResponse object. |
java.util.Date |
getNextUpdate()
Returns the end of validity of this response.
|
CRLReason |
getRevocationReason()
Returns the revocation reason in the case of a revoked certificate.
|
java.util.Date |
getRevocationTime()
Returns the revocation date in the case of a revoked certificate.
|
X509Extension |
getSingleRespExtension(oracle.security.crypto.asn1.ASN1ObjectID type)
Gets the extension if it exists of this response for the given type.
|
X509ExtensionSet |
getSingleRespExtensions()
Gets the extensions of this response.
|
java.util.Date |
getThisUpdate()
Returns thisUpdate.
|
void |
input(java.io.InputStream is) |
int |
length() |
void |
output(java.io.OutputStream os)
Output to the specified output stream.
|
void |
setNextUpdate(java.util.Date nextUpdate)
Sets nextUpdate.
|
void |
setRevocationReason(CRLReason revReason)
Sets the revocation reason in the case of a revoked certificate.
|
void |
setRevocationTime(java.util.Date revTime)
Sets the revocation time in the case of a revoked certificate.
|
void |
setSingleRespExtensions(X509ExtensionSet extensionSet)
Sets the extensions of this response with the given extension set.
|
java.lang.String |
toString() |
public SingleBasicResponse(CertID certID, SingleBasicResponse.CertStatus status, java.util.Date thisUpdate)
SingleBasicResponse given the certID and the certStatus.certID - The certID representing a certificate.certStatus - The status of the certificate.thisUpdate - The time representing the beginning of validity of this response.public SingleBasicResponse(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic CertID getCertID()
SingleBasicResponse object.public SingleBasicResponse.CertStatus getCertStatus()
SingleBasicResponse object.public java.util.Date getThisUpdate()
public void setNextUpdate(java.util.Date nextUpdate)
nextUpdate - A Date representing the end of validity of this response.public java.util.Date getNextUpdate()
public void addSingleRespExtension(X509Extension ext)
ext - The X509Extension to add.public void setSingleRespExtensions(X509ExtensionSet extensionSet)
extensionSet - The extensions to set.public X509Extension getSingleRespExtension(oracle.security.crypto.asn1.ASN1ObjectID type)
type - The ASN1ObjectID representing the type of the X509Extension.public X509ExtensionSet getSingleRespExtensions()
public void setRevocationTime(java.util.Date revTime)
revTime - The revocation date.public java.util.Date getRevocationTime()
public void setRevocationReason(CRLReason revReason)
revReason - The revocation reason of this certificate status.public CRLReason getRevocationReason()
public void input(java.io.InputStream is)
throws java.io.IOException
input in interface oracle.security.crypto.util.Streamablejava.io.IOExceptionpublic void output(java.io.OutputStream os)
throws java.io.IOException
output in interface oracle.security.crypto.util.Streamablejava.io.IOExceptionpublic int length()
length in interface oracle.security.crypto.util.Streamablepublic java.lang.String toString()
toString in class java.lang.Object