Skip navigation links

Oracle Security Developer Tools PKI SDK CMP Java API Reference
11g (11.1.1)

E10666-02


oracle.security.crypto.cmp
Class KeyRecoveryResponse

java.lang.Object
  extended by oracle.security.crypto.cmp.PKIMessageBody
      extended by oracle.security.crypto.cmp.KeyRecoveryResponse

All Implemented Interfaces:
oracle.security.crypto.asn1.ASN1Object, oracle.security.crypto.util.Streamable

public class KeyRecoveryResponse
extends PKIMessageBody

PKI message body of type Key Recovery Response.


Nested Class Summary

 

Nested classes/interfaces inherited from class oracle.security.crypto.cmp.PKIMessageBody
PKIMessageBody.Type

 

Constructor Summary
KeyRecoveryResponse()
          Create a new, empty KeyRecoveryResponse message body.
KeyRecoveryResponse(java.io.InputStream is)
           
KeyRecoveryResponse(PKIStatusInfo status)
          Create a new KeyRecoveryResponse with the given PKIStatusInfo.
KeyRecoveryResponse(PKIStatusInfo status, java.security.cert.X509Certificate newSigCert)
          Create a new KeyRecoveryResponse with the given PKIStatusInfo and new certificate.

 

Method Summary
 void addCACert(java.security.cert.X509Certificate cert)
          Add a CA certificate to this message body.
 void addCertifiedKeyPair(CertifiedKeyPair keyPair)
          Add a CertifiedKeyPair to the key pair history for this response message body.
 java.util.Vector getCACerts()
          Get the set of CA certificates included in this message.
 java.util.Vector getKeyPairHistory()
          Get the key pair history for this response.
 java.security.cert.X509Certificate getNewSigCert()
          Get the new certificate in this response message body.
 PKIStatusInfo getStatus()
          Get the status info for this message.
 PKIMessageBody.Type getType()
          Returns one of the values defined in PKIMessageBody.Type.
 void input(java.io.InputStream is)
          Initializes this object by reading its encoding from the given input stream.
 java.lang.String toString()
           

 

Methods inherited from class oracle.security.crypto.cmp.PKIMessageBody
inputInstance, length, output

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

KeyRecoveryResponse

public KeyRecoveryResponse()
Create a new, empty KeyRecoveryResponse message body. Since such an object is not valid, this constructor is intended primarily for use with the input(java.io.InputStream) method.

KeyRecoveryResponse

public KeyRecoveryResponse(PKIStatusInfo status)
Create a new KeyRecoveryResponse with the given PKIStatusInfo.

KeyRecoveryResponse

public KeyRecoveryResponse(PKIStatusInfo status,
                           java.security.cert.X509Certificate newSigCert)
                    throws java.security.cert.CertificateEncodingException
Create a new KeyRecoveryResponse with the given PKIStatusInfo and new certificate.

Note the changes in the method signature

Previuosly public KeyRecoveryResponse (PKIStatusInfo , X509 )

Now public KeyRecoveryResponse (PKIStatusInfo, X509Certificate )

Throws:
java.security.cert.CertificateEncodingException

KeyRecoveryResponse

public KeyRecoveryResponse(java.io.InputStream is)
                    throws java.io.IOException
Throws:
java.io.IOException

Method Detail

addCACert

public void addCACert(java.security.cert.X509Certificate cert)
Add a CA certificate to this message body.

Note the changes in the method signature

Previously public void addCACert (X509)

Now public void addCACert (X509Certificate )


addCertifiedKeyPair

public void addCertifiedKeyPair(CertifiedKeyPair keyPair)
Add a CertifiedKeyPair to the key pair history for this response message body.

getStatus

public PKIStatusInfo getStatus()
Get the status info for this message.

getNewSigCert

public java.security.cert.X509Certificate getNewSigCert()
Get the new certificate in this response message body. Note : This method returns a java.security.X509Certificate

getCACerts

public java.util.Vector getCACerts()
Get the set of CA certificates included in this message.
Returns:
a Vector of X509Certificate, if any, otherwise null.

getKeyPairHistory

public java.util.Vector getKeyPairHistory()
Get the key pair history for this response.
Returns:
a Vector of CertifiedKeyPair, if any, otherwise null.

getType

public PKIMessageBody.Type getType()
Description copied from class: PKIMessageBody
Returns one of the values defined in PKIMessageBody.Type.
Specified by:
getType in class PKIMessageBody

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

input

public void input(java.io.InputStream is)
           throws java.io.IOException
Initializes this object by reading its encoding from the given input stream.
Throws:
java.io.IOException

Skip navigation links

Oracle Security Developer Tools PKI SDK CMP Java API Reference
11g (11.1.1)

E10666-02


Copyright © 2005, 2009, Oracle. All rights reserved.