java.security.spec
Class RSAPublicKeySpec

java.lang.Object
  |
  +--java.security.spec.RSAPublicKeySpec
All Implemented Interfaces:
KeySpec

public class RSAPublicKeySpec
extends Object
implements KeySpec

Untamed: This class specifies an RSA public key.

Version:
1.8 01/12/03
Author:
Jan Luehe
See Also:
java.security.Key, java.security.KeyFactory, KeySpec, X509EncodedKeySpec, RSAPrivateKeySpec, RSAPrivateCrtKeySpec

Field Summary
private  BigInteger modulus
           
private  BigInteger publicExponent
           
 
Constructor Summary
RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)
          Enabled: Creates a new RSAPublicKeySpec.
 
Method Summary
 BigInteger getModulus()
          Enabled: Returns the modulus.
 BigInteger getPublicExponent()
          Enabled: Returns the public exponent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modulus

private BigInteger modulus

publicExponent

private BigInteger publicExponent
Constructor Detail

RSAPublicKeySpec

public RSAPublicKeySpec(BigInteger modulus,
                        BigInteger publicExponent)
Enabled: Creates a new RSAPublicKeySpec.

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

getModulus

public BigInteger getModulus()
Enabled: Returns the modulus.

Returns:
the modulus

getPublicExponent

public BigInteger getPublicExponent()
Enabled: Returns the public exponent.

Returns:
the public exponent


comments?