Google is committed to advancing racial equity for Black communities. See how.
Added in API level 1

RSAPublicKeySpec

open class RSAPublicKeySpec : KeySpec
kotlin.Any
   ↳ java.security.spec.RSAPublicKeySpec

This class specifies an RSA public key.

Summary

Public constructors

<init>(modulus: BigInteger!, publicExponent: BigInteger!)

Creates a new RSAPublicKeySpec.

Public methods

open BigInteger!

Returns the modulus.

open BigInteger!

Returns the public exponent.

Public constructors

<init>

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

Creates a new RSAPublicKeySpec.

Parameters
modulus BigInteger!: the modulus
publicExponent BigInteger!: the public exponent

Public methods

getModulus

Added in API level 1
open fun getModulus(): BigInteger!

Returns the modulus.

Return
BigInteger! the modulus

getPublicExponent

Added in API level 1
open fun getPublicExponent(): BigInteger!

Returns the public exponent.

Return
BigInteger! the public exponent