Oracle Security Developer Tools PKI SDK OCSP Java API Reference
10g Release 2 (10.1.2.0.2)

B15562-01


oracle.security.crypto.ocsp
Class OCSPResponse

java.lang.Object
  extended byoracle.security.crypto.ocsp.OCSPResponse


public class OCSPResponse
extends java.lang.Object

An OCSP response.


Nested Class Summary
static class OCSPResponse.RespStatus
Implementation of the response status code of an OCSPResponse.

Constructor Summary
OCSPResponse()
Empty contstructor.
OCSPResponse(java.io.InputStream is)
OCSPResponse(OCSPResponse.RespStatus respStatus)
Creates a new OCSPResponse with the given status.
OCSPResponse(OCSPResponse.RespStatus respStatus, ResponseInfo responseInfo)
Creates a new OCSPResponse with the given status and response info.

Method Summary
ResponseInfo getResponseInfo()
Returns the additional response info of this response.
ASN1ObjectID getResponseType()
Gets the response type of the response info.
OCSPResponse.RespStatus getRespStatus()
Returns the status of this response.
void input(java.io.InputStream is)
int length()
void output(java.io.OutputStream os)
java.lang.String toString()

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

Constructor Detail

OCSPResponse

public OCSPResponse()
Empty contstructor.

OCSPResponse

public OCSPResponse(OCSPResponse.RespStatus respStatus)
Creates a new OCSPResponse with the given status.

OCSPResponse

public OCSPResponse(OCSPResponse.RespStatus respStatus,
                    ResponseInfo responseInfo)
Creates a new OCSPResponse with the given status and response info.
Parameters:
responseInfo - A ResponseInfo object representing additional information on the response.

OCSPResponse

public OCSPResponse(java.io.InputStream is)
             throws java.io.IOException

Method Detail

getRespStatus

public OCSPResponse.RespStatus getRespStatus()
Returns the status of this response.
Returns:
A RespStatus object.

getResponseInfo

public ResponseInfo getResponseInfo()
Returns the additional response info of this response.
Returns:
A ResponseInfo object, or null if there is no additional information.

getResponseType

public ASN1ObjectID getResponseType()
Gets the response type of the response info.
Returns:
An ASN1ObjectID representing the type of the response info or null if there is no additional response information.

input

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

output

public void output(java.io.OutputStream os)
            throws java.io.IOException
Throws:
java.io.IOException

length

public int length()

toString

public java.lang.String toString()

Oracle Security Developer Tools PKI SDK OCSP Java API Reference
10g Release 2 (10.1.2.0.2)

B15562-01


Copyright © 2005 , Oracle. All rights reserved.