|
Oracle Security Developer Tools PKI SDK OCSP Java API Reference 10g Release 2 (10.1.2.0.2) B15562-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.security.crypto.ocsp.OCSPRequest
An OCSP request.
| Constructor Summary | |
OCSPRequest()Empty constructor. |
|
OCSPRequest(java.io.InputStream is)Creates a new OCSPRequest from the given input stream |
|
OCSPRequest(SingleRequest request)Creates a new OCSPRequest with the given request. |
|
OCSPRequest(oracle.security.crypto.cert.X509 cert, oracle.security.crypto.cert.X509 caCert)Creates a new OCSPRequest with the given certificate and the CA certificate. |
|
OCSPRequest(oracle.security.crypto.cert.X509 cert, oracle.security.crypto.cert.X509 caCert, AlgorithmIdentifier hashAlgID)Creates a new OCSPRequest with the given certificate and the CA certificate. |
|
| Method Summary | |
void |
addReqExtension(oracle.security.crypto.cert.X509Extension ext)Adds an extension to this request. |
void |
addRequest(SingleRequest request)Adds a request to this OCSPRequest. |
void |
addRequest(oracle.security.crypto.cert.X509 cert, oracle.security.crypto.cert.X509 caCert)Adds a request to this OCSPRequest. |
void |
addRequest(oracle.security.crypto.cert.X509 cert, oracle.security.crypto.cert.X509 caCert, AlgorithmIdentifier hashAlgID)Adds a request to this OCSPRequest. |
void |
addSigVerifyCert(oracle.security.crypto.cert.X509 cert)Adds a certificate to the certificate chain of this request. |
oracle.security.crypto.cert.X509Extension |
getReqExtension(ASN1ObjectID type)Gets the extension if it exists of this request for the given type. |
oracle.security.crypto.cert.X509ExtensionSet |
getReqExtensions()Gets the extensions of this request. |
oracle.security.crypto.cert.GeneralName |
getRequestor()Returns the requestor of this request. |
AlgorithmIdentifier |
getSigAlgID()Returns the algorithm identifier used for the signature. |
byte[] |
getSigBytes()Returns the signature. |
java.util.Vector |
getSigVerifyCerts()Returns the certificate chain. |
void |
input(java.io.InputStream is)Decodes an OCSPRequest from the given input stream |
int |
length() |
void |
output(java.io.OutputStream os) |
java.util.Enumeration |
requests()Returns the request of this OCSPRequest. |
void |
setReqExtensions(oracle.security.crypto.cert.X509ExtensionSet extensionSet)Sets the extensions of this request with the given extension set. |
void |
setRequestor(oracle.security.crypto.cert.GeneralName name)Sets the name of the originator of the request. |
void |
sign(PrivateKey signingKey)Signs the request with the given private key. |
void |
sign(PrivateKey signingKey, AlgorithmIdentifier sigAlgID)Signs the request with the given private key and signature algorithm. |
java.lang.String |
toString() |
boolean |
verifySignature(PublicKey verifyKey)Verifies the signature with the given public key. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public OCSPRequest()
public OCSPRequest(SingleRequest request)
request - The request to add to this new OCSPRequest object.
public OCSPRequest(oracle.security.crypto.cert.X509 cert,
oracle.security.crypto.cert.X509 caCert)
throws AlgorithmIdentifierException,
java.io.IOException
cert - The certificate to request information on.caCert - The CA's certificate that issued cert.
public OCSPRequest(oracle.security.crypto.cert.X509 cert,
oracle.security.crypto.cert.X509 caCert,
AlgorithmIdentifier hashAlgID)
throws AlgorithmIdentifierException,
java.io.IOException
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.
public OCSPRequest(java.io.InputStream is)
throws java.io.IOException
is - An input stream where the request will be read from.java.io.IOExceptionMalformedRequestException - if the request is malformed.| Method Detail |
public java.util.Enumeration requests()
public void addRequest(SingleRequest request)
request - The single request to add.
public void addRequest(oracle.security.crypto.cert.X509 cert,
oracle.security.crypto.cert.X509 caCert)
throws AlgorithmIdentifierException,
java.io.IOException
cert - The certificate to request information on.caCert - The CA's certificate that issued cert.AlgorithmIdentifierExceptionjava.io.IOException
public void addRequest(oracle.security.crypto.cert.X509 cert,
oracle.security.crypto.cert.X509 caCert,
AlgorithmIdentifier hashAlgID)
throws AlgorithmIdentifierException,
java.io.IOException
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.AlgorithmIdentifierExceptionjava.io.IOExceptionpublic void setRequestor(oracle.security.crypto.cert.GeneralName name)
name - A GeneralName representing the requestor.public oracle.security.crypto.cert.GeneralName getRequestor()
public void addReqExtension(oracle.security.crypto.cert.X509Extension ext)
ext - The X509Extension to add.public void setReqExtensions(oracle.security.crypto.cert.X509ExtensionSet extensionSet)
extensionSet - The extensions to set.public oracle.security.crypto.cert.X509Extension getReqExtension(ASN1ObjectID type)
type - The ASN1ObjectID representing the type of the X509Extension.public oracle.security.crypto.cert.X509ExtensionSet getReqExtensions()
public void sign(PrivateKey signingKey)
throws SignatureException
Note: Any modifications to the request contents after sigining will make the signature invalid. The sign method must then be invoked again for a valid signature to be included in the output request.
signingKey - the private key to use to sign this request.SignatureException
public void sign(PrivateKey signingKey,
AlgorithmIdentifier sigAlgID)
throws SignatureException
Note: Any modifications to the request contents after sigining will make the signature invalid. The sign method must then be invoked again for a valid signature to be included in the output request.
signingKey - the private key to use to sign this request.sigAlgID - an AlgorithmIdentifier compatible with the signing key.SignatureExceptionpublic void addSigVerifyCert(oracle.security.crypto.cert.X509 cert)
cert - The X509 certificate to add.public java.util.Vector getSigVerifyCerts()
null if there is no certificates.public AlgorithmIdentifier getSigAlgID()
null if there is no signature present.public byte[] getSigBytes()
null if there is no signature present.
public boolean verifySignature(PublicKey verifyKey)
throws AuthenticationException
verifyKey - The public key to use for the verification.AuthenticationException
public void input(java.io.InputStream is)
throws java.io.IOException
is - An input stream where the request will be read from.java.io.IOExceptionMalformedRequestException - if the request is malformed.
public void output(java.io.OutputStream os)
throws java.io.IOException
java.io.IOExceptionpublic int length()
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 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||