public class RSAPrivateKeySpec extends Object implements KeySpec
Key,
KeyFactory,
KeySpec,
PKCS8EncodedKeySpec,
RSAPublicKeySpec,
RSAPrivateCrtKeySpec| Constructor and Description |
|---|
RSAPrivateKeySpec(BigInteger modulus,
BigInteger privateExponent)
Creates a new RSAPrivateKeySpec.
|
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
getModulus()
Returns the modulus.
|
BigInteger |
getPrivateExponent()
Returns the private exponent.
|
public RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent)
modulus - the modulusprivateExponent - the private exponentpublic BigInteger getModulus()
public BigInteger getPrivateExponent()
Dracula Javadoc Sample, Made with Allan Im.