public final class RSAPrivateKey
extends com.ibm.security.pkcs8.PrivateKeyInfo
implements java.security.interfaces.RSAPrivateKey, java.io.Serializable
| Constructor and Description |
|---|
RSAPrivateKey(java.math.BigInteger m,
java.math.BigInteger p)
Make a RSA private key.
|
RSAPrivateKey(byte[] encoded)
Make a RSA private key from its DER encoding (PKCS #8).
|
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
getModulus()
Return the modulus.
|
java.math.BigInteger |
getPrivateExponent()
Return the private exponent.
|
java.lang.String |
toString() |
void |
zeroize()
This function zeroizes the key so that it isn't in memory
|
addAttribute, addAttributes, clone, encode, equals, getAlgorithm, getAlgorithmId, getAttribute, getAttributes, getEncoded, getFormat, getKeyBytes, hasAttribute, hasAttributes, hashCode, parseKey, parseKeypublic RSAPrivateKey(java.math.BigInteger m,
java.math.BigInteger p)
throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionpublic RSAPrivateKey(byte[] encoded)
throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionpublic java.math.BigInteger getModulus()
getModulus in interface java.security.interfaces.RSAKeypublic java.math.BigInteger getPrivateExponent()
getPrivateExponent in interface java.security.interfaces.RSAPrivateKeypublic java.lang.String toString()
toString in class com.ibm.security.pkcs8.PrivateKeyInfopublic void zeroize()
© Portions Copyright 2003, 2012 IBM Corporation. All rights reserved.
© Portions Copyright 2003, 2012, Oracle and/or its affiliates. All rights reserved.