public class CertAnnouncement extends PKIMessageBody
PKIMessageBody.Type| Constructor and Description |
|---|
CertAnnouncement()
Create an empty
CertAnnouncement. |
CertAnnouncement(java.io.InputStream is) |
CertAnnouncement(java.security.cert.X509Certificate cert)
Create a
CertAnnouncement with the given certificate. |
| Modifier and Type | Method and Description |
|---|---|
java.security.cert.X509Certificate |
getCertificate()
Return the certificate being published.
|
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, outputpublic CertAnnouncement()
CertAnnouncement.public CertAnnouncement(java.security.cert.X509Certificate cert)
throws java.security.cert.CertificateEncodingException
CertAnnouncement with the given certificate.
Note the changes in the method signature
Previously public CertAnnouncement (X509)
Now public CertAnnouncement (X509Certificate )
Note : CertificateEncodingException introduced
java.security.cert.CertificateEncodingExceptionpublic CertAnnouncement(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic java.security.cert.X509Certificate getCertificate()
public PKIMessageBody.Type getType()
PKIMessageBodyPKIMessageBody.Type.getType in class PKIMessageBodypublic java.lang.String toString()
toString in class java.lang.Objectpublic void input(java.io.InputStream is)
throws java.io.IOException
java.io.IOException