java.security.spec
Class RSAPrivateKeySpec

java.lang.Object
  |
  +--java.security.spec.RSAPrivateKeySpec
All Implemented Interfaces:
KeySpec
Direct Known Subclasses:
RSAMultiPrimePrivateCrtKeySpec, RSAPrivateCrtKeySpec

public class RSAPrivateKeySpec
extends Object
implements KeySpec

Untamed: This class specifies an RSA private key.

Version:
1.8 01/12/03
Author:
Jan Luehe
See Also:
java.security.Key, java.security.KeyFactory, KeySpec, PKCS8EncodedKeySpec, RSAPublicKeySpec, RSAPrivateCrtKeySpec

Field Summary
private  BigInteger modulus
           
private  BigInteger privateExponent
           
 
Constructor Summary
RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent)
          Enabled: Creates a new RSAPrivateKeySpec.
 
Method Summary
 BigInteger getModulus()
          Enabled: Returns the modulus.
 BigInteger getPrivateExponent()
          Enabled: Returns the private exponent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modulus

private BigInteger modulus

privateExponent

private BigInteger privateExponent
Constructor Detail

RSAPrivateKeySpec

public RSAPrivateKeySpec(BigInteger modulus,
                         BigInteger privateExponent)
Enabled: Creates a new RSAPrivateKeySpec.

Parameters:
modulus - the modulus
privateExponent - the private exponent
Method Detail

getModulus

public BigInteger getModulus()
Enabled: Returns the modulus.

Returns:
the modulus

getPrivateExponent

public BigInteger getPrivateExponent()
Enabled: Returns the private exponent.

Returns:
the private exponent


comments?