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)

Since: 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 ()

Since: API Level 1

Returns the modulus n.

Returns
  • the modulus n.

public BigInteger getPublicExponent ()

Since: API Level 1

Returns the public exponent d.

Returns
  • the public exponent d.