Oracle Security Developer Tools PKI SDK CMP Java API Reference
10g (10.1.4.0.1)

B28166-01


oracle.security.crypto.cmp
Class CertifiedKeyPair

java.lang.Object
  extended byoracle.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(oracle.security.crypto.cert.X509 cert)
          Create a new CertifiedKeyPair with the specified certificate.
CertifiedKeyPair(oracle.security.crypto.cert.X509 cert, EncryptedValue privKey)
          Create a new CertifiedKeyPair with the specified certificate and corresponding encrypted private key.
CertifiedKeyPair(oracle.security.crypto.cert.X509 cert, EncryptedValue privKey, PKIPubInfoRegControl pubInfo)
          Create a new CertifiedKeyPair with the specified certificate and corresponding encrypted private key and publication info.
CertifiedKeyPair(oracle.security.crypto.cert.X509 cert, PKIPubInfoRegControl pubInfo)
          Create a new CertifiedKeyPair with the specified certificate and corresponding publication information.

 

Method Summary
 oracle.security.crypto.cert.X509 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(oracle.security.crypto.cert.X509 cert)
Create a new CertifiedKeyPair with the specified certificate.

CertifiedKeyPair

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

CertifiedKeyPair

public CertifiedKeyPair(oracle.security.crypto.cert.X509 cert,
                        PKIPubInfoRegControl pubInfo)
Create a new CertifiedKeyPair with the specified certificate and corresponding publication information.

CertifiedKeyPair

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

CertifiedKeyPair

public CertifiedKeyPair(oracle.security.crypto.cert.X509 cert,
                        EncryptedValue privKey)
Create a new CertifiedKeyPair with the specified certificate and corresponding encrypted private key.

CertifiedKeyPair

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

CertifiedKeyPair

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

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

Method Detail

getCertificate

public oracle.security.crypto.cert.X509 getCertificate()
Get the (unencrypted) certificate.
Returns:
if present, a X509, otherwise null.

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

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

Oracle Security Developer Tools PKI SDK CMP Java API Reference
10g (10.1.4.0.1)

B28166-01


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