public abstract class PKICertRepMessage extends PKIMessageBody
PKIMessageBody used for PKI certification responses.PKIMessageBody.Type| Modifier | Constructor and Description |
|---|---|
protected |
PKICertRepMessage()
Create a new, empty
PKICertRepMessage message body. |
protected |
PKICertRepMessage(CertResponse cr)
Create a new
PKICertRepMessage message body with the specified CertResponse. |
protected |
PKICertRepMessage(java.io.InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCertificate(java.security.cert.X509Certificate c)
Add a certificate to this response message body.
|
void |
addCertResponse(CertResponse cr)
Add a
CertResponse to this response message body. |
java.util.Vector |
getCertificates()
Get any CA certificates included in this message body.
|
java.util.Vector |
getCertResponses()
Get the certificate responses in this message body.
|
void |
input(java.io.InputStream is) |
java.lang.String |
toString() |
getType, inputInstance, length, outputprotected PKICertRepMessage()
PKICertRepMessage message body. Since such an object is not valid, this constructor is intended primarily for use with the input(java.io.InputStream) method.protected PKICertRepMessage(CertResponse cr)
PKICertRepMessage message body with the specified CertResponse.
protected PKICertRepMessage(java.io.InputStream is)
throws java.io.IOException
java.io.IOException
public void addCertificate(java.security.cert.X509Certificate c)
throws java.security.cert.CertificateEncodingException
Note the changes in the method signature
Previously public void addCertificate (X509)
Now public void addCertificate (X509Certificate )
Note : CertificateEncodingException is introduced
java.security.cert.CertificateEncodingExceptionpublic void addCertResponse(CertResponse cr)
CertResponse to this response message body.public java.util.Vector getCertificates()
Vector containg the CA X509 certificates if any, otherwise null.public java.util.Vector getCertResponses()
Vector of CertResponse objects.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