|
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.ResponseInfo
oracle.security.crypto.ocsp.BasicOCSPResponse
A Basic OCSP response.
Note: A Basic OCSP Response MUST be signed by the reponder before being sent or output.
| Constructor Summary | |
BasicOCSPResponse(java.io.InputStream is) |
|
BasicOCSPResponse(oracle.security.crypto.cert.X500Name responder)Creates a new BasicOCSPResponse with the given name for identification. |
|
| Method Summary | |
void |
addRespExtension(oracle.security.crypto.cert.X509Extension ext)Adds an extension to this response. |
void |
addResponse(SingleBasicResponse response)Adds a response to this BasicOCSPResponse object. |
void |
addSigVerifyCert(oracle.security.crypto.cert.X509 cert)Adds a certificate to the certificate chain of this response. |
java.util.Date |
getProducedAt()Gets the time when this response was signed. |
oracle.security.crypto.cert.X509Extension |
getRespExtension(ASN1ObjectID type)Gets the extension if it exists of this response for the given type. |
oracle.security.crypto.cert.X509ExtensionSet |
getRespExtensions()Gets the extensions of this response. |
oracle.security.crypto.cert.X500Name |
getResponder()Gets the responder's name. |
byte[] |
getResponderKeyHash()Gets the hash of the repsonder's public key. |
ASN1ObjectID |
getResponseType()Gets the response type of this basic response. |
AlgorithmIdentifier |
getSigAlgID()Gets the algorithm identifier used for the signature. |
byte[] |
getSigBytes()Gets the signature. |
java.util.Vector |
getSigVerifyCerts()Gets the certificate chain. |
void |
input(java.io.InputStream is) |
int |
length() |
void |
output(java.io.OutputStream os) |
java.util.Enumeration |
responses()Gets the responses of this BasicOCSPResponse object. |
void |
setRespExtensions(oracle.security.crypto.cert.X509ExtensionSet extensionSet)Sets the extensions of this response with the given extension set. |
void |
sign(PrivateKey signingKey)Signs this response using the given private key. |
void |
sign(PrivateKey signingKey, AlgorithmIdentifier sigAlgID)Signs this response using the given private key and signature algorithm. |
java.lang.String |
toString() |
boolean |
verifySignature(PublicKey verifyKey)Verifies the signature with the given key. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BasicOCSPResponse(oracle.security.crypto.cert.X500Name responder)
responder - A GeneralName used to identify the entity that respond.
public BasicOCSPResponse(java.io.InputStream is)
throws java.io.IOException
| Method Detail |
public ASN1ObjectID getResponseType()
getResponseType in class ResponseInfopublic oracle.security.crypto.cert.X500Name getResponder()
null if the responder's key hash is set.public byte[] getResponderKeyHash()
null if the responder's name is set.public java.util.Date getProducedAt()
public java.util.Enumeration responses()
public void addResponse(SingleBasicResponse response)
response - The SingleBasicResponse to add to this object.public void addRespExtension(oracle.security.crypto.cert.X509Extension ext)
ext - The X509Extension to add.public void setRespExtensions(oracle.security.crypto.cert.X509ExtensionSet extensionSet)
extensionSet - The extensions to set.public oracle.security.crypto.cert.X509Extension getRespExtension(ASN1ObjectID type)
type - The ASN1ObjectID representing the type of the X509Extension.public oracle.security.crypto.cert.X509ExtensionSet getRespExtensions()
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 generate the signature.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 generate the signature.sigAlgID - an AlgorithmIdentifier compatible with the signing key.SignatureExceptionpublic void addSigVerifyCert(oracle.security.crypto.cert.X509 cert)
cert - The X509 certificateto add.public java.util.Vector getSigVerifyCerts()
public AlgorithmIdentifier getSigAlgID()
public byte[] getSigBytes()
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
java.io.IOException
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 | ||||||||