java.security.spec

Class RSAPrivateKeySpec

public class RSAPrivateKeySpec extends Object implements KeySpec

RSA Private Key class Specification. Used to maintain the RSA Private Keys.

Since: JDK 1.2

Constructor Summary
RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent)
Constructs a new RSAPrivateKeySpec with the specified modulus and privateExponent.
Method Summary
BigIntegergetModulus()
Gets the RSA modulus.
BigIntegergetPrivateExponent()
Gets the RSA private exponent.

Constructor Detail

RSAPrivateKeySpec

public RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent)
Constructs a new RSAPrivateKeySpec with the specified modulus and privateExponent.

Parameters: modulus the RSA modulus privateExponent the private key exponent

Method Detail

getModulus

public BigInteger getModulus()
Gets the RSA modulus.

Returns: the RSA modulus

getPrivateExponent

public BigInteger getPrivateExponent()
Gets the RSA private exponent.

Returns: the RSA private exponent