|
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.ResponseInfo
oracle.security.crypto.ocsp.BasicOCSPResponse
public class 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(java.security.PublicKey respKey) Creates a new BasicOCSPResponse with the given responder's public key. |
|
BasicOCSPResponse(javax.security.auth.x500.X500Principal 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(java.security.cert.X509Certificate 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. |
javax.security.auth.x500.X500Principal |
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(java.security.PrivateKey signingKey) Signs this response using the given private key. |
void |
sign(java.security.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(java.security.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(javax.security.auth.x500.X500Principal responder)
responder
- A GeneralName used to identify the entity that respond.public BasicOCSPResponse(java.security.PublicKey respKey) throws java.security.NoSuchAlgorithmException
Note the changes in the method signature
Previously public BasicOCSPResponse (oracle.security.crypto.core.PublicKey)
Now public BasicOCSPResponse (java.security.PublicKey )
Note the change in the exceptions declared to be thrown.
Exceptions no longer thrown - AlgorithmIdentifierException
Exceptions introduced - NoSuchAlgorithmException
respKey
- The key that will be sha1 hashed to identify the entity that respond.java.security.NoSuchAlgorithmException
public BasicOCSPResponse(java.io.InputStream is) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public oracle.security.crypto.asn1.ASN1ObjectID getResponseType()
getResponseType
in class ResponseInfo
public javax.security.auth.x500.X500Principal 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(java.security.PrivateKey signingKey) throws java.security.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.
Note the changes in the method signature
Previously public void sign (oracle.security.crypto.core.PrivateKey)
Now public void sign (java.security.PrivateKey )
Note the change in the exceptions declared to be thrown.
Exceptions no longer thrown - oracle.security.crypto.core.SignatureException
Exceptions introduced - java.security.SignatureException
signingKey
- The private key to use to generate the signature.java.security.SignatureException
public void sign(java.security.PrivateKey signingKey, oracle.security.crypto.core.AlgorithmIdentifier sigAlgID) throws java.security.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.
Note the changes in the method signature
Previously public void sign (oracle.security.crypto.core.PrivateKey ,AlgorithmIdentifier))
Now public void sign (java.security.PrivateKey ,AlgorithmIdentifier)
Note the change in the exceptions declared to be thrown.
Exceptions no longer thrown - oracle.security.crypto.core.SignatureIdentifierException
Exceptions introduced - java.security.SignatureException
signingKey
- the private key to use to generate the signature.sigAlgID
- an AlgorithmIdentifier
compatible with the signing key.java.security.SignatureException
public void addSigVerifyCert(java.security.cert.X509Certificate cert) throws java.security.cert.CertificateEncodingException
Note the changes in the method signature
Previously public void addSigVerifyCert (X509)
Now public void addSigVerifyCert (X509Certificate)
Note :CertificateEncodingException is introduced
cert
- The X509 certificateto add.java.security.cert.CertificateEncodingException
public java.util.Vector getSigVerifyCerts()
public oracle.security.crypto.core.AlgorithmIdentifier getSigAlgID()
public byte[] getSigBytes()
public boolean verifySignature(java.security.PublicKey verifyKey) throws oracle.security.crypto.core.AuthenticationException
verifyKey
- The public key to use for the verification.
Note the changes in the method signature
Previously public boolean verifySignature oracle.security.PublicKey)
Now public boolean verifySignature (java.security.PublicKey )
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()
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 |