public class CertifiedKeyPair
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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() |
public CertifiedKeyPair(java.security.cert.X509Certificate cert) throws java.security.cert.CertificateEncodingException
CertifiedKeyPair
with the specified certificate.
Note the changes in the method signature
Previously public CertifiedKeyPair (X509)
Nowpublic CertifiedKeyPair (X509Certificate )
Note : CertificateEncodingException is introduced
java.security.cert.CertificateEncodingException
public CertifiedKeyPair(EncryptedValue encryptedCert)
CertifiedKeyPair
with the specified encrypted certificate.public CertifiedKeyPair(java.security.cert.X509Certificate cert, PKIPubInfoRegControl pubInfo) throws java.security.cert.CertificateEncodingException
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
java.security.cert.CertificateEncodingException
public CertifiedKeyPair(EncryptedValue encryptedCert, PKIPubInfoRegControl pubInfo) throws java.security.cert.CertificateEncodingException
CertifiedKeyPair
with the specified encrypted certificate and corresponding publication information.java.security.cert.CertificateEncodingException
public CertifiedKeyPair(java.security.cert.X509Certificate cert, EncryptedValue privKey) throws java.security.cert.CertificateEncodingException
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
java.security.cert.CertificateEncodingException
public CertifiedKeyPair(EncryptedValue encryptedCert, EncryptedValue privKey)
CertifiedKeyPair
with the specified encrypted certificate and corresponding encrypted private key.public CertifiedKeyPair(java.security.cert.X509Certificate cert, EncryptedValue privKey, PKIPubInfoRegControl pubInfo) throws java.security.cert.CertificateEncodingException
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
java.security.cert.CertificateEncodingException
public CertifiedKeyPair(EncryptedValue encryptedCert, EncryptedValue privKey, PKIPubInfoRegControl pubInfo)
CertifiedKeyPair
with the specified encrypted certificate and corresponding encrypted private key and publication info.public CertifiedKeyPair(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public java.security.cert.X509Certificate getCertificate()
X509Certificate
, otherwise null
. Note : a java.security.X509Certificate is returnedpublic EncryptedValue getEncryptedCert()
null
.public EncryptedValue getPrivateKey()
null
.public PKIPubInfoRegControl getPublicationInfo()
PKIPublicationInfo
, otherwise null
.public java.lang.String toString()
toString
in class java.lang.Object
public void input(java.io.InputStream is) throws java.io.IOException
input
in interface oracle.security.crypto.util.Streamable
java.io.IOException
public void output(java.io.OutputStream os) throws java.io.IOException
output
in interface oracle.security.crypto.util.Streamable
java.io.IOException
public int length()
length
in interface oracle.security.crypto.util.Streamable