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, parseKey
public RSAPrivateKey(java.math.BigInteger m, java.math.BigInteger p) throws java.security.InvalidKeyException
java.security.InvalidKeyException
public RSAPrivateKey(byte[] encoded) throws java.security.InvalidKeyException
java.security.InvalidKeyException
public java.math.BigInteger getModulus()
getModulus
in interface java.security.interfaces.RSAKey
public java.math.BigInteger getPrivateExponent()
getPrivateExponent
in interface java.security.interfaces.RSAPrivateKey
public java.lang.String toString()
toString
in class com.ibm.security.pkcs8.PrivateKeyInfo
public void zeroize()
© Portions Copyright 2003, 2012 IBM Corporation. All rights reserved.
© Portions Copyright 2003, 2012, Oracle and/or its affiliates. All rights reserved.