Skip to content

Most visited

Recently visited

navigation
Added in API level 1

RSAPublicKeySpec

public class RSAPublicKeySpec
extends Object implements KeySpec

java.lang.Object
   ↳ java.security.spec.RSAPublicKeySpec


The key specification of a RSA public key.

Defined in the PKCS #1 v2.1 standard.

Summary

Public constructors

RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)

Creates a new RSAPublicKeySpec with the specified modulus and public exponent.

Public methods

BigInteger getModulus()

Returns the modulus n.

BigInteger getPublicExponent()

Returns the public exponent d.

Inherited methods

From class java.lang.Object

Public constructors

RSAPublicKeySpec

Added in API level 1
RSAPublicKeySpec (BigInteger modulus, 
                BigInteger publicExponent)

Creates a new RSAPublicKeySpec with the specified modulus and public exponent.

Parameters
modulus BigInteger: the modulus n.
publicExponent BigInteger: the public exponent d.

Public methods

getModulus

Added in API level 1
BigInteger getModulus ()

Returns the modulus n.

Returns
BigInteger the modulus n.

getPublicExponent

Added in API level 1
BigInteger getPublicExponent ()

Returns the public exponent d.

Returns
BigInteger the public exponent d.
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.