public class KeyRecoveryResponse extends PKIMessageBody
PKIMessageBody.Type
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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() |
inputInstance, length, output
public KeyRecoveryResponse()
KeyRecoveryResponse
message body. Since such an object is not valid, this constructor is intended primarily for use with the input(java.io.InputStream)
method.public KeyRecoveryResponse(PKIStatusInfo status)
KeyRecoveryResponse
with the given PKIStatusInfo
.public KeyRecoveryResponse(PKIStatusInfo status, java.security.cert.X509Certificate newSigCert) throws java.security.cert.CertificateEncodingException
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 )
java.security.cert.CertificateEncodingException
public KeyRecoveryResponse(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public void addCACert(java.security.cert.X509Certificate cert)
Note the changes in the method signature
Previously public void addCACert (X509)
Now public void addCACert (X509Certificate )
public void addCertifiedKeyPair(CertifiedKeyPair keyPair)
CertifiedKeyPair
to the key pair history for this response message body.public PKIStatusInfo getStatus()
public java.security.cert.X509Certificate getNewSigCert()
public java.util.Vector getCACerts()
Vector
of X509Certificate
, if any, otherwise null
.public java.util.Vector getKeyPairHistory()
Vector
of CertifiedKeyPair
, if any, otherwise null
.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