Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in API level 1

RSAPublicKeySpec

public class RSAPublicKeySpec
extends Object implements KeySpec

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


This class specifies an RSA public key.

Summary

Public constructors

RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)

Creates a new RSAPublicKeySpec.

Public methods

BigInteger getModulus()

Returns the modulus.

BigInteger getPublicExponent()

Returns the public exponent.

Inherited methods

Public constructors

RSAPublicKeySpec

added in API level 1
public RSAPublicKeySpec (BigInteger modulus, 
                BigInteger publicExponent)

Creates a new RSAPublicKeySpec.

Parameters
modulus BigInteger: the modulus

publicExponent BigInteger: the public exponent

Public methods

getModulus

added in API level 1
public BigInteger getModulus ()

Returns the modulus.

Returns
BigInteger the modulus

getPublicExponent

added in API level 1
public BigInteger getPublicExponent ()

Returns the public exponent.

Returns
BigInteger the public exponent