Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.security.spec

Class RSAPrivateKeySpec

java.lang.Object
|
+--java.security.spec.RSAPrivateKeySpec

All Implemented Interfaces:

KeySpec


public class RSAPrivateKeySpec

extends Object

implements KeySpec

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

Since:Author:

Constructor Summary

RSAPrivateKeySpec(java.math.BigInteger modulus, java.math.BigInteger privateExponent)

Constructs a new RSAPrivateKeySpec with the specified modulus and privateExponent.

Method Summary

java.math.BigIntegergetModulus()

Gets the RSA modulus.
java.math.BigIntegergetPrivateExponent()

Gets the RSA private exponent.

Constructor Details

RSAPrivateKeySpec

public RSAPrivateKeySpec(java.math.BigInteger modulus, java.math.BigInteger privateExponent)

Constructs a new RSAPrivateKeySpec with the specified modulus and privateExponent.

Parameters:


Method Details

getModulus

public BigInteger getModulus()

Gets the RSA modulus.

Returns:


getPrivateExponent

public BigInteger getPrivateExponent()

Gets the RSA private exponent.

Returns: