public class RSAPrivateKey
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.math.BigInteger |
d |
private java.math.BigInteger |
e |
private java.math.BigInteger |
n |
Constructor and Description |
---|
RSAPrivateKey(java.math.BigInteger d,
java.math.BigInteger e,
java.math.BigInteger n) |
Modifier and Type | Method and Description |
---|---|
java.math.BigInteger |
getD() |
java.math.BigInteger |
getE() |
java.math.BigInteger |
getN() |
RSAPublicKey |
getPublicKey() |
java.security.KeyPair |
toJCEKeyPair()
Converts this to a JCE API representation of the RSA key pair.
|
private java.math.BigInteger d
private java.math.BigInteger e
private java.math.BigInteger n
public RSAPrivateKey(java.math.BigInteger d, java.math.BigInteger e, java.math.BigInteger n)
public java.math.BigInteger getD()
public java.math.BigInteger getE()
public java.math.BigInteger getN()
public RSAPublicKey getPublicKey()
public java.security.KeyPair toJCEKeyPair() throws java.security.GeneralSecurityException
java.security.GeneralSecurityException