Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public class

RSAPrivateKeySpec

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

Class Overview

The key specification of a RSA private key.

Defined in the PKCS #1 v2.1 standard

Summary

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

Public Constructors

public RSAPrivateKeySpec ( BigInteger modulus, BigInteger privateExponent)

Added in API level 1

Creates a new RSAPrivateKeySpec with the specified modulus and private exponent.

Parameters
modulus the modulus n .
privateExponent the private exponent e

Public Methods

public BigInteger getModulus ()

Added in API level 1

Returns the modulus n .

Returns
  • the modulus n .

public BigInteger getPrivateExponent ()

Added in API level 1

Returns the private exponent e .

Returns
  • the private exponent e .