Skip navigation links

Oracle Fusion Middleware PKI SDK OCSP Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10673-01


oracle.security.crypto.ocsp
Class SingleBasicResponse

java.lang.Object
  extended by oracle.security.crypto.ocsp.SingleBasicResponse

All Implemented Interfaces:
oracle.security.crypto.asn1.ASN1Object, oracle.security.crypto.util.Streamable

public class SingleBasicResponse
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object

Represents a single response for a Basic OCSP Response.


Nested Class Summary
static class SingleBasicResponse.CertStatus
          Implementation of the different status code of a SingleBasicResponse object.

 

Constructor Summary
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)
           

 

Method Summary
 void addSingleRespExtension(oracle.security.crypto.cert.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.
 oracle.security.crypto.cert.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.
 oracle.security.crypto.cert.X509Extension getSingleRespExtension(oracle.security.crypto.asn1.ASN1ObjectID type)
          Gets the extension if it exists of this response for the given type.
 oracle.security.crypto.cert.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(oracle.security.crypto.cert.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(oracle.security.crypto.cert.X509ExtensionSet extensionSet)
          Sets the extensions of this response with the given extension set.
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

SingleBasicResponse

public SingleBasicResponse(CertID certID,
                           SingleBasicResponse.CertStatus status,
                           java.util.Date thisUpdate)
Creates a new SingleBasicResponse given the certID and the certStatus.
Parameters:
certID - The certID representing a certificate.
certStatus - The status of the certificate.
thisUpdate - The time representing the beginning of validity of this response.

SingleBasicResponse

public SingleBasicResponse(java.io.InputStream is)
                    throws java.io.IOException
Throws:
java.io.IOException

Method Detail

getCertID

public CertID getCertID()
Returns the certID of this SingleBasicResponse object.
Returns:
A CertID object representing a certificate.

getCertStatus

public SingleBasicResponse.CertStatus getCertStatus()
Returns the status of this SingleBasicResponse object.
Returns:
A CertStatus object representing the status of the certificate.

getThisUpdate

public java.util.Date getThisUpdate()
Returns thisUpdate.
Returns:
A Date representing the beginning time of validity of this response.

setNextUpdate

public void setNextUpdate(java.util.Date nextUpdate)
Sets nextUpdate.
Parameters:
nextUpdate - A Date representing the end of validity of this response.

getNextUpdate

public java.util.Date getNextUpdate()
Returns the end of validity of this response.
Returns:
A Date object representing the end of validity of this object.

addSingleRespExtension

public void addSingleRespExtension(oracle.security.crypto.cert.X509Extension ext)
Adds an extension to this response.
Parameters:
ext - The X509Extension to add.

setSingleRespExtensions

public void setSingleRespExtensions(oracle.security.crypto.cert.X509ExtensionSet extensionSet)
Sets the extensions of this response with the given extension set.
Parameters:
extensionSet - The extensions to set.

getSingleRespExtension

public oracle.security.crypto.cert.X509Extension getSingleRespExtension(oracle.security.crypto.asn1.ASN1ObjectID type)
Gets the extension if it exists of this response for the given type.
Parameters:
type - The ASN1ObjectID representing the type of the X509Extension.
Returns:
A X509Extension object, or null if the extension is missing.

getSingleRespExtensions

public oracle.security.crypto.cert.X509ExtensionSet getSingleRespExtensions()
Gets the extensions of this response.
Returns:
A X509ExtensionSet object containing the extensions of this response, or null if there is no extension.

setRevocationTime

public void setRevocationTime(java.util.Date revTime)
Sets the revocation time in the case of a revoked certificate.
Parameters:
revTime - The revocation date.

getRevocationTime

public java.util.Date getRevocationTime()
Returns the revocation date in the case of a revoked certificate.
Returns:
A Date object.

setRevocationReason

public void setRevocationReason(oracle.security.crypto.cert.CRLReason revReason)
Sets the revocation reason in the case of a revoked certificate.
Parameters:
revReason - The revocation reason of this certificate status.

getRevocationReason

public oracle.security.crypto.cert.CRLReason getRevocationReason()
Returns the revocation reason in the case of a revoked certificate.
Returns:
A CRLReason representing the revocation reason.

input

public void input(java.io.InputStream is)
           throws java.io.IOException
Specified by:
input in interface oracle.security.crypto.util.Streamable
Throws:
java.io.IOException

output

public void output(java.io.OutputStream os)
            throws java.io.IOException
Output to the specified output stream.
Specified by:
output in interface oracle.security.crypto.util.Streamable
Throws:
java.io.IOException

length

public int length()
Specified by:
length in interface oracle.security.crypto.util.Streamable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Skip navigation links

Oracle Fusion Middleware PKI SDK OCSP Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10673-01


Copyright © 2005, 2009, Oracle. All rights reserved.