java.security.spec
Class RSAPublicKeySpec

java.lang.Object
  extended by java.security.spec.RSAPublicKeySpec
All Implemented Interfaces:
KeySpec

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
 BigInteger getModulus()
          Gets the RSA modulus.
 BigInteger getPublicExponent()
          Gets the RSA public exponent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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