Skip to content

Most visited

Recently visited

navigation
Added in API level 1

RSAPrivateKeySpec

public class RSAPrivateKeySpec
extends Object implements KeySpec

java.lang.Object
   ↳ java.security.spec.RSAPrivateKeySpec
Known Direct Subclasses


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.

Inherited methods

From class java.lang.Object

Public constructors

RSAPrivateKeySpec

Added in API level 1
RSAPrivateKeySpec (BigInteger modulus, 
                BigInteger privateExponent)

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

Parameters
modulus BigInteger: the modulus n.
privateExponent BigInteger: the private exponent e

Public methods

getModulus

Added in API level 1
BigInteger getModulus ()

Returns the modulus n.

Returns
BigInteger the modulus n.

getPrivateExponent

Added in API level 1
BigInteger getPrivateExponent ()

Returns the private exponent e.

Returns
BigInteger the private exponent e.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.