|
Oracle Fusion Middleware PKI SDK OCSP Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10673-03 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.ocsp.SingleRequest
public class SingleRequest
Represents a single request for an OCSP Request.
Constructor Summary | |
---|---|
SingleRequest(java.security.cert.X509Certificate cert, java.security.cert.X509Certificate caCert) Creates a new SingleRequest with the given certificate and the CA certificate. |
|
SingleRequest(java.security.cert.X509Certificate cert, java.security.cert.X509Certificate caCert, oracle.security.crypto.core.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(oracle.security.crypto.asn1.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 |
---|
public SingleRequest(java.security.cert.X509Certificate cert, java.security.cert.X509Certificate caCert) throws java.security.NoSuchAlgorithmException, java.security.cert.CertificateEncodingException
Note the changes in the method signature
Previously public SingleRequest (X509, X509)
Now public SingleRequest (X509Certificate, X509Certificate)
Note the change in the exceptions declared to be thrown.
Exceptions no longer thrown -AlgorithmIdentifierException
Exceptions introduced - NoSuchAlgorithmException, CertificateEncodingException
cert
- The certificate to request information on.caCert
- The CA's certificate that issued cert.java.security.NoSuchAlgorithmException
java.security.cert.CertificateEncodingException
public SingleRequest(java.security.cert.X509Certificate cert, java.security.cert.X509Certificate caCert, oracle.security.crypto.core.AlgorithmIdentifier hashAlgID) throws java.security.NoSuchAlgorithmException, java.security.cert.CertificateEncodingException
Note the changes in the method signature
Previously public SingleRequest (X509, X509,AlgorithmIdentifier )
Now public SingleRequest (X509Certificate, X509Certificate,AlgorithmIdentifier )
Note the change in the exceptions declared to be thrown.
Exceptions no longer thrown -AlgorithmIdentifierException , IOException
Exceptions introduced - NoSuchAlgorithmException, CertificateEncodingException
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.java.security.NoSuchAlgorithmException
java.security.cert.CertificateEncodingException
Method Detail |
---|
public CertID getCertID()
public void addSingleReqExtension(oracle.security.crypto.cert.X509Extension ext)
ext
- The X509Extension to add.public void setSingleReqExtensions(oracle.security.crypto.cert.X509ExtensionSet extensionSet)
extensionSet
- The extensions to set.public oracle.security.crypto.cert.X509Extension getSingleReqExtension(oracle.security.crypto.asn1.ASN1ObjectID type)
type
- The ASN1ObjectID representing the type of the X509Extension.public oracle.security.crypto.cert.X509ExtensionSet getSingleReqExtensions()
public void input(java.io.InputStream is) throws java.io.IOException
input
in interface oracle.security.crypto.util.Streamable
java.io.IOException
public void output(java.io.OutputStream os) throws java.io.IOException
output
in interface oracle.security.crypto.util.Streamable
java.io.IOException
public int length()
length
in interface oracle.security.crypto.util.Streamable
public java.lang.String toString()
toString
in class java.lang.Object
|
Oracle Fusion Middleware PKI SDK OCSP Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10673-03 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |