Foundation 1.1.2

java.security.spec
Class RSAPublicKeySpec

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

public class RSAPublicKeySpec
extends Object
implements KeySpec

This class specifies an RSA public key.

See Also:
Key, KeyFactory, KeySpec, X509EncodedKeySpec, RSAPrivateKeySpec, RSAPrivateCrtKeySpec

Constructor Summary
RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)
          Creates a new RSAPublicKeySpec.
 
Method Summary
 BigInteger getModulus()
          Returns the modulus.
 BigInteger getPublicExponent()
          Returns the 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)
Creates a new RSAPublicKeySpec.

Parameters:
modulus - the modulus
publicExponent - the public exponent
Method Detail

getModulus

public BigInteger getModulus()
Returns the modulus.

Returns:
the modulus

getPublicExponent

public BigInteger getPublicExponent()
Returns the public exponent.

Returns:
the public exponent

Foundation 1.1.2

Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. Use of this specification is subject to license terms.