Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

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 is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 219 specification.