java.security.spec

Class RSAPublicKeySpec

public class RSAPublicKeySpec extends Object implements KeySpec

RSA Public Key class Specification. Used to maintain the RSA Public Keys.

Since: JDK 1.2

Constructor Summary
RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)
Constructs a new RSAPublicKeySpec with the specified modulus and publicExponent.
Method Summary
BigIntegergetModulus()
Gets the RSA modulus.
BigIntegergetPublicExponent()
Gets the RSA public exponent.

Constructor Detail

RSAPublicKeySpec

public RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)
Constructs a new RSAPublicKeySpec with the specified modulus and publicExponent.

Parameters: modulus the RSA modulus publicExponent the public key exponent

Method Detail

getModulus

public BigInteger getModulus()
Gets the RSA modulus.

Returns: the RSA modulus

getPublicExponent

public BigInteger getPublicExponent()
Gets the RSA public exponent.

Returns: the RSA public exponent