Skip navigation links

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

E10666-02


oracle.security.crypto.cmp
Class CAKeyUpdateAnn

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

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

public class CAKeyUpdateAnn
extends PKIMessageBody

PKI message body of type CA Key Update Announcement, used when a certificate authority updates its own key pair.


Nested Class Summary

 

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

 

Constructor Summary
CAKeyUpdateAnn()
          Create a new, empty CAKeyUpdateAnn.
CAKeyUpdateAnn(java.io.InputStream is)
           
CAKeyUpdateAnn(java.security.cert.X509Certificate oldWithNew, java.security.cert.X509Certificate newWithOld, java.security.cert.X509Certificate newWithNew)
          Create a CAKeyUpdateAnn with the specified certificates.

 

Method Summary
 java.security.cert.X509Certificate getNewWithNew()
          Returns the certificate of the new public key signed with the new private key.
 java.security.cert.X509Certificate getNewWithOld()
          Returns the certificate of the new public key signed with the old private key.
 java.security.cert.X509Certificate getOldWithNew()
          Returns the certificate of the old public key signed with the new private key.
 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

CAKeyUpdateAnn

public CAKeyUpdateAnn()
Create a new, empty CAKeyUpdateAnn. Use the input(java.io.InputStream) methods to complete the object's contents.

CAKeyUpdateAnn

public CAKeyUpdateAnn(java.security.cert.X509Certificate oldWithNew,
                      java.security.cert.X509Certificate newWithOld,
                      java.security.cert.X509Certificate newWithNew)
               throws java.security.cert.CertificateEncodingException
Create a CAKeyUpdateAnn with the specified certificates.

Note the changes in the method signature

Previously public CAKeyUpdateAnn (X509, X509, X509)

Now public CAKeyUpdateAnn (X509Certificate , X509Certificate , X509Certificate )

Note : CertificateEncodingException is introduced

Parameters:
oldWithNew - the old public key signed with the new private key.
newWithOld - the new public key signed with the old private key.
newWithNew - the new public key signed with the new private key.
Throws:
java.security.cert.CertificateEncodingException

CAKeyUpdateAnn

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

Method Detail

getOldWithNew

public java.security.cert.X509Certificate getOldWithNew()
Returns the certificate of the old public key signed with the new private key. Note : Returns a java.security.X509Certificate

getNewWithOld

public java.security.cert.X509Certificate getNewWithOld()
Returns the certificate of the new public key signed with the old private key. Note : Returns a java.security.X509Certificate

getNewWithNew

public java.security.cert.X509Certificate getNewWithNew()
Returns the certificate of the new public key signed with the new private key. Note : Returns a java.security.X509Certificate

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.