PrivateKeyPKCS8 instead.public class RSAPrivateKeyPKCS8 extends RSAPrivateKey implements Streamable
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, erase, finalize, getAlgID, getAllowExport, getContents, getCrtCoefficient, getEncoded, getFormat, getPrimeExponentP, getPrimeExponentQ, getPrimeP, getPrimeQ, getPrivateExponent, getPublicExponent, getPublicKey, initialize, isPublic, setAllowExport, toStringassertAllowExport, getAlgorithm, getBitLength, getExponent, getModulus, modulusLength, readExternal, setBytes, setModulusExponent, writeExternalequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAlgorithm, getBitLengthpublic RSAPrivateKeyPKCS8()
public RSAPrivateKeyPKCS8(byte[] password,
java.io.File f)
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundExceptionjava.io.IOException
public RSAPrivateKeyPKCS8(java.lang.String password,
java.io.File f)
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundExceptionjava.io.IOExceptionpublic RSAPrivateKeyPKCS8(RSAPrivateKey key, RandomBitsSource rbs) throws java.io.IOException
RSAPrivateKeyPKCS8 from a RSAPrivateKey and the given RandomBitsSource.java.io.IOExceptionpublic 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
RSAPrivateKeyinput in interface Streamableinput in class RSAPrivateKeyjava.io.IOException
public void output(java.io.OutputStream os)
throws java.io.IOException
RSAPrivateKeyoutput in interface Streamableoutput in class RSAPrivateKeyjava.io.IOExceptionfor PKCS #1 privateKey format.public int length()
Streamablelength in interface Streamablelength in class RSAPrivateKey