public class

RSAPrivateKeySpec

extends Object
implements KeySpec
java.lang.Object
   ↳ java.security.spec.RSAPrivateKeySpec
Known Direct Subclasses

Class Overview

This class specifies an RSA private key.

Summary

Public Constructors
RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent)
Creates a new RSAPrivateKeySpec.
Public Methods
BigInteger getModulus()
Returns the modulus.
BigInteger getPrivateExponent()
Returns the private exponent.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RSAPrivateKeySpec (BigInteger modulus, BigInteger privateExponent)

Creates a new RSAPrivateKeySpec.

Parameters
modulus the modulus
privateExponent the private exponent

Public Methods

public BigInteger getModulus ()

Returns the modulus.

Returns
  • the modulus

public BigInteger getPrivateExponent ()

Returns the private exponent.

Returns
  • the private exponent