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 SingleRequest

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


public class SingleRequest
extends java.lang.Object

Represents a single request for an OCSP Request.


Constructor Summary
SingleRequest(oracle.security.crypto.cert.X509 cert, oracle.security.crypto.cert.X509 caCert)
Creates a new SingleRequest with the given certificate and the CA certificate.
SingleRequest(oracle.security.crypto.cert.X509 cert, oracle.security.crypto.cert.X509 caCert, AlgorithmIdentifier hashAlgID)
Creates a new SingleRequest with the given certificate and the CA certificate.

Method Summary
void addSingleReqExtension(oracle.security.crypto.cert.X509Extension ext)
Adds an extension to this request.
CertID getCertID()
Gets the cert ID of this single request.
oracle.security.crypto.cert.X509Extension getSingleReqExtension(ASN1ObjectID type)
Gets the extension if it exists of this request for the given type.
oracle.security.crypto.cert.X509ExtensionSet getSingleReqExtensions()
Gets the extensions of this request.
void input(java.io.InputStream is)
int length()
void output(java.io.OutputStream os)
void setSingleReqExtensions(oracle.security.crypto.cert.X509ExtensionSet extensionSet)
Sets the extensions of this request 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

SingleRequest

public SingleRequest(oracle.security.crypto.cert.X509 cert,
                     oracle.security.crypto.cert.X509 caCert)
              throws AlgorithmIdentifierException,
                     java.io.IOException
Creates a new SingleRequest with the given certificate and the CA certificate. By default the Algorithm used for hashing the GeneralName and the public key of the CA's certificate will be SHA1.
Parameters:
cert - The certificate to request information on.
caCert - The CA's certificate that issued cert.

SingleRequest

public SingleRequest(oracle.security.crypto.cert.X509 cert,
                     oracle.security.crypto.cert.X509 caCert,
                     AlgorithmIdentifier hashAlgID)
              throws AlgorithmIdentifierException,
                     java.io.IOException
Creates a new SingleRequest with the given certificate and the CA certificate.
Parameters:
cert - The certificate to request information on.
caCert - The CA's certificate that issued cert.
hashAlgID - The algorithm used for hashing the GeneralName and the public key of the CA's certificate.

Method Detail

getCertID

public CertID getCertID()
Gets the cert ID of this single request.
Returns:
A CertID object representing the request.

addSingleReqExtension

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

setSingleReqExtensions

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

getSingleReqExtension

public oracle.security.crypto.cert.X509Extension getSingleReqExtension(ASN1ObjectID type)
Gets the extension if it exists of this request 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.

getSingleReqExtensions

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

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.