RSAPrivateKeySpec

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## java.security.spec
Class RSAPrivateKeySpec

    java.lang.Object
      java.security.spec.RSAPrivateKeySpec

All Implemented Interfaces:
  KeySpec

Direct Known Subclasses:
  RSAPrivateCrtKeySpec

    public class RSAPrivateKeySpec

extends Object
implements KeySpec

This class specifies an RSA private key.

Version:
  1.6 00/02/02
Author:
  Jan Luehe
See Also:
  `Key`, `KeyFactory`, `KeySpec`, `PKCS8EncodedKeySpec`, `RSAPublicKeySpec`, `RSAPrivateCrtKeySpec`

Constructor Summary
`RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent)` Creates a new RSAPrivateKeySpec.

Method Summary
`BigInteger` | `getModulus()` Returns the modulus.
`BigInteger` | `getPrivateExponent()` Returns the private exponent.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### RSAPrivateKeySpec

    public RSAPrivateKeySpec(BigInteger modulus,
                             BigInteger privateExponent)

  Creates a new RSAPrivateKeySpec.

  Parameters:
    `modulus` - the modulus
    `privateExponent` - the private exponent

Method Detail

### getModulus

    public BigInteger getModulus()

  Returns the modulus.

  Returns:
    the modulus

### getPrivateExponent

    public BigInteger getPrivateExponent()

  Returns the private exponent.

  Returns:
    the private exponent

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD