public class CAKeyUpdateAnn extends PKIMessageBody
PKIMessageBody.Type
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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() |
inputInstance, length, output
public CAKeyUpdateAnn()
CAKeyUpdateAnn
. Use the input(java.io.InputStream)
methods to complete the object's contents.public CAKeyUpdateAnn(java.security.cert.X509Certificate oldWithNew, java.security.cert.X509Certificate newWithOld, java.security.cert.X509Certificate newWithNew) throws java.security.cert.CertificateEncodingException
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
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.java.security.cert.CertificateEncodingException
public CAKeyUpdateAnn(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public java.security.cert.X509Certificate getOldWithNew()
public java.security.cert.X509Certificate getNewWithOld()
public java.security.cert.X509Certificate getNewWithNew()
public PKIMessageBody.Type getType()
PKIMessageBody
PKIMessageBody.Type
.getType
in class PKIMessageBody
public java.lang.String toString()
toString
in class java.lang.Object
public void input(java.io.InputStream is) throws java.io.IOException
java.io.IOException