public class

RSAPublicKeySpec

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

Class Overview

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

Public Constructors

public RSAPublicKeySpec (BigInteger modulus, BigInteger publicExponent)

Creates a new RSAPublicKeySpec.

Parameters
modulus the modulus
publicExponent the public exponent

Public Methods

public BigInteger getModulus ()

Returns the modulus.

Returns
  • the modulus

public BigInteger getPublicExponent ()

Returns the public exponent.

Returns
  • the public exponent