java.security.spec
Class RSAPrivateKeySpec

java.lang.Object
  extended by java.security.spec.RSAPrivateKeySpec
All Implemented Interfaces:
KeySpec
Direct Known Subclasses:
RSAMultiPrimePrivateCrtKeySpec, RSAPrivateCrtKeySpec

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
 BigInteger getModulus()
          Gets the RSA modulus.
 BigInteger getPrivateExponent()
          Gets the RSA private exponent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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