|
Oracle Security Developer Tools PKI SDK OCSP Java API Reference 10g (10.1.4.0.1) B28168-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.core.PublicKey respKey) Creates a new BasicOCSPResponse with the given responder's public key. |
|
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(oracle.security.crypto.asn1.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. |
oracle.security.crypto.asn1.ASN1ObjectID |
getResponseType() Gets the response type of this basic response. |
oracle.security.crypto.core.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(oracle.security.crypto.core.PrivateKey signingKey) Signs this response using the given private key. |
void |
sign(oracle.security.crypto.core.PrivateKey signingKey, oracle.security.crypto.core.AlgorithmIdentifier sigAlgID) Signs this response using the given private key and signature algorithm. |
java.lang.String |
toString() |
boolean |
verifySignature(oracle.security.crypto.core.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(oracle.security.crypto.core.PublicKey respKey) throws oracle.security.crypto.core.AlgorithmIdentifierException
respKey
- The key that will be sha1 hashed to identify the entity that respond.public BasicOCSPResponse(java.io.InputStream is) throws java.io.IOException
Method Detail |
public oracle.security.crypto.asn1.ASN1ObjectID getResponseType()
getResponseType
in class ResponseInfo
public 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(oracle.security.crypto.asn1.ASN1ObjectID type)
type
- The ASN1ObjectID representing the type of the X509Extension.public oracle.security.crypto.cert.X509ExtensionSet getRespExtensions()
public void sign(oracle.security.crypto.core.PrivateKey signingKey) throws oracle.security.crypto.core.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.oracle.security.crypto.core.SignatureException
public void sign(oracle.security.crypto.core.PrivateKey signingKey, oracle.security.crypto.core.AlgorithmIdentifier sigAlgID) throws oracle.security.crypto.core.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.oracle.security.crypto.core.SignatureException
public void addSigVerifyCert(oracle.security.crypto.cert.X509 cert)
cert
- The X509 certificateto add.public java.util.Vector getSigVerifyCerts()
public oracle.security.crypto.core.AlgorithmIdentifier getSigAlgID()
public byte[] getSigBytes()
public boolean verifySignature(oracle.security.crypto.core.PublicKey verifyKey) throws oracle.security.crypto.core.AuthenticationException
verifyKey
- The public key to use for the verification.oracle.security.crypto.core.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.IOException
public int length()
public java.lang.String toString()
|
Oracle Security Developer Tools PKI SDK OCSP Java API Reference 10g (10.1.4.0.1) B28168-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |