|
Oracle Security Developer Tools Crypto Java API Reference 11g (11.1.1) E10668-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.core.RSAKey
oracle.security.crypto.core.RSAPrivateKey
oracle.security.crypto.core.RSAPrivateKeyPKCS8
Deprecated. This class is maintained only to ease the transistion for existing Phaos SSLava 1.1.x applications. New applications should use PrivateKeyPKCS8
instead.
public class RSAPrivateKeyPKCS8
A class for PKCS8 encrypted RSA private keys.
Constructor Summary | |
---|---|
RSAPrivateKeyPKCS8() Deprecated. |
|
RSAPrivateKeyPKCS8(byte[] password, java.io.File f) Deprecated. Read encrypted private key from a file. |
|
RSAPrivateKeyPKCS8(RSAPrivateKey key, RandomBitsSource rbs) Deprecated. Create a new RSAPrivateKeyPKCS8 from a RSAPrivateKey and the given RandomBitsSource . |
|
RSAPrivateKeyPKCS8(java.lang.String password, java.io.File f) Deprecated. Read encrypted private key from a file. |
Method Summary | |
---|---|
RSAPrivateKey |
getKey() Deprecated. Returns the RSA private key (this object). |
void |
input(java.io.InputStream is) Deprecated. Reads an RSA private key from the specified input stream. |
int |
length() Deprecated. Length of this object's encoding. |
void |
output(java.io.OutputStream os) Deprecated. Writes the DER encoding of this key in PKCS #8 privateKeyInfo format (as opposed to PKCS #1 privateKey format) to the given output stream. |
void |
setPassword(byte[] p) Deprecated. Set password for PKCS5. |
void |
setPassword(java.lang.String p) Deprecated. Set password for PKCS5. |
Methods inherited from class oracle.security.crypto.core.RSAPrivateKey |
---|
clone, erase, finalize, getAlgID, getAllowExport, getContents, getCrtCoefficient, getEncoded, getFormat, getPrimeExponentP, getPrimeExponentQ, getPrimeP, getPrimeQ, getPublicExponent, getPublicKey, initialize, isPublic, setAllowExport, toString |
Methods inherited from class oracle.security.crypto.core.RSAKey |
---|
assertAllowExport, getAlgorithm, getBitLength, getExponent, getModulus, modulusLength, readExternal, setBytes, setModulusExponent, writeExternal |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.security.crypto.core.Key |
---|
getAlgorithm, getBitLength |
Methods inherited from interface java.io.Externalizable |
---|
readExternal, writeExternal |
Constructor Detail |
---|
public RSAPrivateKeyPKCS8()
public RSAPrivateKeyPKCS8(byte[] password, java.io.File f) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public RSAPrivateKeyPKCS8(java.lang.String password, java.io.File f) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public RSAPrivateKeyPKCS8(RSAPrivateKey key, RandomBitsSource rbs) throws java.io.IOException
RSAPrivateKeyPKCS8
from a RSAPrivateKey
and the given RandomBitsSource
.
java.io.IOException
Method Detail |
---|
public void setPassword(byte[] p)
public void setPassword(java.lang.String p)
public RSAPrivateKey getKey()
public void input(java.io.InputStream is) throws java.io.IOException
RSAPrivateKey
input
in interface Streamable
input
in class RSAPrivateKey
java.io.IOException
public void output(java.io.OutputStream os) throws java.io.IOException
RSAPrivateKey
output
in interface Streamable
output
in class RSAPrivateKey
java.io.IOException
for PKCS #1 privateKey format.
public int length()
Streamable
length
in interface Streamable
length
in class RSAPrivateKey
|
Oracle Security Developer Tools Crypto Java API Reference 11g (11.1.1) E10668-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |