Skip navigation links

Oracle Fusion Middleware PKI SDK CMP Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10666-04


oracle.security.crypto.cmp
Class CertAnnouncement

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

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

public class CertAnnouncement
extends PKIMessageBody

PKI message body of type Certificate Announcement. Intended for use in cases where there is no pre-existing method for publication of a certificate.


Nested Class Summary

 

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

 

Constructor Summary
CertAnnouncement()
          Create an empty CertAnnouncement.
CertAnnouncement(java.io.InputStream is)
           
CertAnnouncement(java.security.cert.X509Certificate cert)
          Create a CertAnnouncement with the given certificate.

 

Method Summary
 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()
           

 

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

CertAnnouncement

public CertAnnouncement()
Create an empty CertAnnouncement.

CertAnnouncement

public CertAnnouncement(java.security.cert.X509Certificate cert)
                 throws java.security.cert.CertificateEncodingException
Create a CertAnnouncement with the given certificate.

Note the changes in the method signature

Previously public CertAnnouncement (X509)

Now public CertAnnouncement (X509Certificate )

Note : CertificateEncodingException introduced

Throws:
java.security.cert.CertificateEncodingException

CertAnnouncement

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

Method Detail

getCertificate

public java.security.cert.X509Certificate getCertificate()
Return the certificate being published. Note : This method 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 Fusion Middleware PKI SDK CMP Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10666-04


Copyright © 2005, 2011 , Oracle. All rights reserved.