to top
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)

Since: 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 ()

Since: API Level 1

Returns the modulus n.

Returns
  • the modulus n.

public BigInteger getPrivateExponent ()

Since: API Level 1

Returns the private exponent e.

Returns
  • the private exponent e.