public class RSAPrivateKeySpec extends Objectimplements KeySpec
Key,
KeyFactory,
KeySpec,
PKCS8EncodedKeySpec,
RSAPublicKeySpec,
RSAPrivateCrtKeySpec
| Constructor and Description |
|---|
RSAPrivateKeySpec(BigInteger
Creates a new RSAPrivateKeySpec.
|
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
getModulus()
Returns the modulus.
|
BigInteger |
getPrivateExponent()
Returns the private exponent.
|
public RSAPrivateKeySpec(BigIntegermodulus, BigInteger privateExponent)
modulus - the modulus
privateExponent - the private exponent
public BigIntegergetModulus()
public BigIntegergetPrivateExponent()