Skip navigation links

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

E10666-05


oracle.security.crypto.cmp
Class CertifiedKeyPair

java.lang.Object
  extended by oracle.security.crypto.cmp.CertifiedKeyPair

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

public class CertifiedKeyPair
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object

Encapsulates a public key certificate and, optionally, an encrypted private key and/or publication information.


Constructor Summary
CertifiedKeyPair(EncryptedValue encryptedCert)
          Create a new CertifiedKeyPair with the specified encrypted certificate.
CertifiedKeyPair(EncryptedValue encryptedCert, EncryptedValue privKey)
          Create a new CertifiedKeyPair with the specified encrypted certificate and corresponding encrypted private key.
CertifiedKeyPair(EncryptedValue encryptedCert, EncryptedValue privKey, PKIPubInfoRegControl pubInfo)
          Create a new CertifiedKeyPair with the specified encrypted certificate and corresponding encrypted private key and publication info.
CertifiedKeyPair(EncryptedValue encryptedCert, PKIPubInfoRegControl pubInfo)
          Create a new CertifiedKeyPair with the specified encrypted certificate and corresponding publication information.
CertifiedKeyPair(java.io.InputStream is)
           
CertifiedKeyPair(java.security.cert.X509Certificate cert)
          Create a new CertifiedKeyPair with the specified certificate.
CertifiedKeyPair(java.security.cert.X509Certificate cert, EncryptedValue privKey)
          Create a new CertifiedKeyPair with the specified certificate and corresponding encrypted private key.
CertifiedKeyPair(java.security.cert.X509Certificate cert, EncryptedValue privKey, PKIPubInfoRegControl pubInfo)
          Create a new CertifiedKeyPair with the specified certificate and corresponding encrypted private key and publication info.
CertifiedKeyPair(java.security.cert.X509Certificate cert, PKIPubInfoRegControl pubInfo)
          Create a new CertifiedKeyPair with the specified certificate and corresponding publication information.

 

Method Summary
 java.security.cert.X509Certificate getCertificate()
          Get the (unencrypted) certificate.
 EncryptedValue getEncryptedCert()
          Get the encrypted certificate.
 EncryptedValue getPrivateKey()
          Get the encrypted private key.
 PKIPubInfoRegControl getPublicationInfo()
          Get the publication info associated with the certificate.
 void input(java.io.InputStream is)
           
 int length()
           
 void output(java.io.OutputStream os)
           
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

CertifiedKeyPair

public CertifiedKeyPair(java.security.cert.X509Certificate cert)
                 throws java.security.cert.CertificateEncodingException
Create a new CertifiedKeyPair with the specified certificate.

Note the changes in the method signature

Previously public CertifiedKeyPair (X509)

Nowpublic CertifiedKeyPair (X509Certificate )

Note : CertificateEncodingException is introduced

Throws:
java.security.cert.CertificateEncodingException

CertifiedKeyPair

public CertifiedKeyPair(EncryptedValue encryptedCert)
Create a new CertifiedKeyPair with the specified encrypted certificate.

CertifiedKeyPair

public CertifiedKeyPair(java.security.cert.X509Certificate cert,
                        PKIPubInfoRegControl pubInfo)
                 throws java.security.cert.CertificateEncodingException
Create a new CertifiedKeyPair with the specified certificate and corresponding publication information.

Note the changes in the method signature

Previously public CertifiedKeyPair (X509 , PKIPubInfoRegControl)

Nowpublic CertifiedKeyPair (X509Certificate , PKIPubInfoRegControl)

Note : CertificateEncodingException is introduced

Throws:
java.security.cert.CertificateEncodingException

CertifiedKeyPair

public CertifiedKeyPair(EncryptedValue encryptedCert,
                        PKIPubInfoRegControl pubInfo)
                 throws java.security.cert.CertificateEncodingException
Create a new CertifiedKeyPair with the specified encrypted certificate and corresponding publication information.
Throws:
java.security.cert.CertificateEncodingException

CertifiedKeyPair

public CertifiedKeyPair(java.security.cert.X509Certificate cert,
                        EncryptedValue privKey)
                 throws java.security.cert.CertificateEncodingException
Create a new CertifiedKeyPair with the specified certificate and corresponding encrypted private key.

Note the changes in the method signature

Previously public CertifiedKeyPair (X509 , EncryptedValue)

Nowpublic CertifiedKeyPair (X509Certificate , EncryptedValue)

Note : CertificateEncodingException is introduced

Throws:
java.security.cert.CertificateEncodingException

CertifiedKeyPair

public CertifiedKeyPair(EncryptedValue encryptedCert,
                        EncryptedValue privKey)
Create a new CertifiedKeyPair with the specified encrypted certificate and corresponding encrypted private key.

CertifiedKeyPair

public CertifiedKeyPair(java.security.cert.X509Certificate cert,
                        EncryptedValue privKey,
                        PKIPubInfoRegControl pubInfo)
                 throws java.security.cert.CertificateEncodingException
Create a new CertifiedKeyPair with the specified certificate and corresponding encrypted private key and publication info.

Note the changes in the method signature

Previously public CertifiedKeyPair (X509 , EncryptedValue, PKIPubInfoRegControl)

Nowpublic CertifiedKeyPair (X509Certificate , EncryptedValue, PKIPubInfoRegControl)

Note : CertificateEncodingException is introduced

Throws:
java.security.cert.CertificateEncodingException

CertifiedKeyPair

public CertifiedKeyPair(EncryptedValue encryptedCert,
                        EncryptedValue privKey,
                        PKIPubInfoRegControl pubInfo)
Create a new CertifiedKeyPair with the specified encrypted certificate and corresponding encrypted private key and publication info.

CertifiedKeyPair

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

Method Detail

getCertificate

public java.security.cert.X509Certificate getCertificate()
Get the (unencrypted) certificate.
Returns:
if present, a X509Certificate, otherwise null. Note : a java.security.X509Certificate is returned

getEncryptedCert

public EncryptedValue getEncryptedCert()
Get the encrypted certificate.
Returns:
if present, the encrypted certificate, otherwise null.

getPrivateKey

public EncryptedValue getPrivateKey()
Get the encrypted private key.
Returns:
if present, the encrypted private key, otherwise null.

getPublicationInfo

public PKIPubInfoRegControl getPublicationInfo()
Get the publication info associated with the certificate.
Returns:
if present, PKIPublicationInfo, otherwise null.

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
Specified by:
input in interface oracle.security.crypto.util.Streamable
Throws:
java.io.IOException

output

public void output(java.io.OutputStream os)
            throws java.io.IOException
Specified by:
output in interface oracle.security.crypto.util.Streamable
Throws:
java.io.IOException

length

public int length()
Specified by:
length in interface oracle.security.crypto.util.Streamable

Skip navigation links

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

E10666-05


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