java.security.spec
Class RSAPrivateKeySpec

java.lang.Object
  |
  +--java.security.spec.RSAPrivateKeySpec
Direct Known Subclasses:
RSAPrivateCrtKeySpec

public class RSAPrivateKeySpec
extends java.lang.Object
implements KeySpec

RSA private key specification.


Attention:  This is not a SUN implementation!

This class has been developed by IAIK according to the documentation publically available.
For SUNīs documentation of this class see http://java.sun.com/security/JCE1.2/earlyaccess/javax.crypto.spec.RSAPrivateKeySpec.html


RSA private key specification, extended by RSAPrivateKeyCrtSpec for supporting RSA private key specifications using the Chinese Remainder Theorem(CRT) A key specification is a transparent representation of the key material constituting the key.

This class specifies the modulus n and private exponent d constituting a RSAPrivateKey according to PKCS#1 when not considering additional parameter values for implementing a Chinese Remainder Theorem supporting key representation.

See Also:
KeySpec, RSAPrivateKeyCrtSpec, RSAPublicKeySpec

Constructor Summary
RSAPrivateKeySpec(java.math.BigInteger modulus, java.math.BigInteger privateExponent)
          Creates RSA private key specification from given modulus and private exponent.
 
Method Summary
 java.math.BigInteger getModulus()
          Returns the modulus.
 java.math.BigInteger getPrivateExponent()
          Returns the 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(java.math.BigInteger modulus,
                         java.math.BigInteger privateExponent)
Creates RSA private key specification from given modulus and private exponent.
Parameters:
modulus - the modulus
privateExponent - the private exponent
Method Detail

getModulus

public java.math.BigInteger getModulus()
Returns the modulus.
Returns:
the modulus

getPrivateExponent

public java.math.BigInteger getPrivateExponent()
Returns the private exponent.
Returns:
the private exponent