Skip navigation links

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

E10666-03


oracle.security.crypto.cmp
Class CertConfirm

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

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

public class CertConfirm
extends PKIMessageBody

PKI message body of type Certificate Confirmation.


Nested Class Summary

 

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

 

Constructor Summary
CertConfirm()
          Create a CertConfirm.
CertConfirm(java.io.InputStream is)
           
CertConfirm(java.security.cert.X509Certificate cert, java.math.BigInteger certReqID)
          Note the changes in the method signature
CertConfirm(java.security.cert.X509Certificate cert, java.math.BigInteger certReqID, PKIStatusInfo status)
          Note the changes in the method signature

 

Method Summary
 void addCertificate(java.security.cert.X509Certificate cert, java.math.BigInteger certReqID)
          Note the changes in the method signature
 void addCertificate(java.security.cert.X509Certificate cert, java.math.BigInteger certReqID, PKIStatusInfo status)
          Note the changes in the method signature
 java.util.Enumeration certHashes()
          Return an enumeration of the certificate hashes.
 java.util.Enumeration certReqIDs()
          Return the certificate request IDs.
 PKIStatusInfo getStatusInfo(java.math.BigInteger certReqID)
          Returns a PKIStatusInfo corresponding to the given cert request ID.
 PKIStatusInfo getStatusInfo(byte[] hash)
          Returns a PKIStatusInfo corresponding to the given hash.
 PKIMessageBody.Type getType()
          Returns one of the values defined in PKIMessageBody.Type.
 void input(java.io.InputStream is)
           
 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

CertConfirm

public CertConfirm()
Create a CertConfirm.

CertConfirm

public CertConfirm(java.security.cert.X509Certificate cert,
                   java.math.BigInteger certReqID)
            throws java.security.NoSuchAlgorithmException,
                   java.security.cert.CertificateEncodingException

Note the changes in the method signature

Previouslypublic CertConfirm (X509, BigInteger )

Now public CertConfirm (X509Certificate , BigInteger )

Note the change in the exceptions declared to be thrown.

Exceptions no longer thrown -- AlgorithmIdentifierException

Exceptions introduced -- NoSuchAlgorithmException,CertificateEncodingException

Throws:
java.security.NoSuchAlgorithmException
java.security.cert.CertificateEncodingException

CertConfirm

public CertConfirm(java.security.cert.X509Certificate cert,
                   java.math.BigInteger certReqID,
                   PKIStatusInfo status)
            throws java.security.NoSuchAlgorithmException,
                   java.security.cert.CertificateEncodingException

Note the changes in the method signature

Previouslypublic CertConfirm (X509, BigInteger, PKIStatusInfo )

Now public CertConfirm (X509Certificate , BigInteger , PKIStatusInfo )

Note the change in the exceptions declared to be thrown.

Exceptions no longer thrown -- AlgorithmIdentifierException

Exceptions introduced -- NoSuchAlgorithmException,CertificateEncodingException

Parameters:
cert - - X509 Certificate
certReqID - - the request id
status - - the pki status
Throws:
java.security.NoSuchAlgorithmException
java.security.cert.CertificateEncodingException

CertConfirm

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

Method Detail

addCertificate

public void addCertificate(java.security.cert.X509Certificate cert,
                           java.math.BigInteger certReqID)
                    throws java.security.NoSuchAlgorithmException,
                           java.security.cert.CertificateEncodingException

Note the changes in the method signature

Previously public void addCertificate (X509, BigInteger )

Now public void addCertificate (X509Certificate, BigInteger )

Note the change in the exceptions declared to be thrown.

Exceptions no longer thrown -- AlgorithmIdentifierException

Exceptions introduced -- NoSuchAlgorithmException,CertificateEncodingException

Throws:
java.security.NoSuchAlgorithmException
java.security.cert.CertificateEncodingException

addCertificate

public void addCertificate(java.security.cert.X509Certificate cert,
                           java.math.BigInteger certReqID,
                           PKIStatusInfo status)
                    throws java.security.NoSuchAlgorithmException,
                           java.security.cert.CertificateEncodingException

Note the changes in the method signature

Previously public void addCertificate (X509, BigInteger ,PKIStatusInfo)

Now public void addCertificate (X509Certificate, BigInteger ,PKIStatusInfo)

Note the change in the exceptions declared to be thrown.

Exceptions no longer thrown -- AlgorithmIdentifierException

Exceptions introduced -- NoSuchAlgorithmException,CertificateEncodingException

Throws:
java.security.NoSuchAlgorithmException
java.security.cert.CertificateEncodingException

certHashes

public java.util.Enumeration certHashes()
Return an enumeration of the certificate hashes.

certReqIDs

public java.util.Enumeration certReqIDs()
Return the certificate request IDs.

getStatusInfo

public PKIStatusInfo getStatusInfo(byte[] hash)
Returns a PKIStatusInfo corresponding to the given hash.

getStatusInfo

public PKIStatusInfo getStatusInfo(java.math.BigInteger certReqID)
Returns a PKIStatusInfo corresponding to the given cert request ID.

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
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-03


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