public class RSAPrivateKey extends Object
| Constructor and Description |
|---|
RSAPrivateKey(BigInteger d,
BigInteger e,
BigInteger n) |
| Modifier and Type | Method and Description |
|---|---|
static RSAPrivateKey |
generateKey(int numbits)
Generate an RSA hostkey for testing purposes only.
|
static RSAPrivateKey |
generateKey(SecureRandom rnd,
int numbits)
Generate an RSA hostkey for testing purposes only.
|
BigInteger |
getD() |
BigInteger |
getE() |
BigInteger |
getN() |
RSAPublicKey |
getPublicKey() |
public RSAPrivateKey(BigInteger d, BigInteger e, BigInteger n)
public BigInteger getD()
public BigInteger getE()
public BigInteger getN()
public RSAPublicKey getPublicKey()
public static RSAPrivateKey generateKey(int numbits)
numbits - Key length in bitspublic static RSAPrivateKey generateKey(SecureRandom rnd, int numbits)
rnd - Source for random bitsnumbits - Key length in bitsCopyright © 2014. All Rights Reserved.