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

RSAPublicKeySpec

extends Object
implements KeySpec
java.lang.Object
   ↳ java.security.spec.RSAPublicKeySpec

Class Overview

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 .
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RSAPublicKeySpec ( BigInteger modulus, BigInteger publicExponent)

Added in API level 1

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

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

Public Methods

public BigInteger getModulus ()

Added in API level 1

Returns the modulus n .

Returns
  • the modulus n .

public BigInteger getPublicExponent ()

Added in API level 1

Returns the public exponent d .

Returns
  • the public exponent d .