java.security.spec
Class RSAPublicKeySpec

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.security.spec.RSAPublicKeySpec
All Implemented Interfaces:
KeySpec sample code for java.security.spec.KeySpec definition code for java.security.spec.KeySpec

public class RSAPublicKeySpec
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements KeySpec sample code for java.security.spec.KeySpec definition code for java.security.spec.KeySpec

This class specifies an RSA public key.

See Also:
Key sample code for java.security.Key definition code for java.security.Key , KeyFactory sample code for java.security.KeyFactory definition code for java.security.KeyFactory , KeySpec sample code for java.security.spec.KeySpec definition code for java.security.spec.KeySpec , X509EncodedKeySpec sample code for java.security.spec.X509EncodedKeySpec definition code for java.security.spec.X509EncodedKeySpec , RSAPrivateKeySpec sample code for java.security.spec.RSAPrivateKeySpec definition code for java.security.spec.RSAPrivateKeySpec , RSAPrivateCrtKeySpec sample code for java.security.spec.RSAPrivateCrtKeySpec definition code for java.security.spec.RSAPrivateCrtKeySpec

Constructor Summary
RSAPublicKeySpec sample code for java.security.spec.RSAPublicKeySpec.RSAPublicKeySpec(java.math.BigInteger, java.math.BigInteger) definition code for java.security.spec.RSAPublicKeySpec.RSAPublicKeySpec(java.math.BigInteger, java.math.BigInteger) (BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  modulus, BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  publicExponent)
          Creates a new RSAPublicKeySpec.
 
Method Summary
 BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger getModulus sample code for java.security.spec.RSAPublicKeySpec.getModulus() definition code for java.security.spec.RSAPublicKeySpec.getModulus() ()
          Returns the modulus.
 BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger getPublicExponent sample code for java.security.spec.RSAPublicKeySpec.getPublicExponent() definition code for java.security.spec.RSAPublicKeySpec.getPublicExponent() ()
          Returns the public exponent.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

RSAPublicKeySpec sample code for java.security.spec.RSAPublicKeySpec(java.math.BigInteger, java.math.BigInteger) definition code for java.security.spec.RSAPublicKeySpec(java.math.BigInteger, java.math.BigInteger)

public RSAPublicKeySpec(BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  modulus,
                        BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  publicExponent)
Creates a new RSAPublicKeySpec.

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

getModulus sample code for java.security.spec.RSAPublicKeySpec.getModulus() definition code for java.security.spec.RSAPublicKeySpec.getModulus()

public BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  getModulus()
Returns the modulus.

Returns:
the modulus

getPublicExponent sample code for java.security.spec.RSAPublicKeySpec.getPublicExponent() definition code for java.security.spec.RSAPublicKeySpec.getPublicExponent()

public BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  getPublicExponent()
Returns the public exponent.

Returns:
the public exponent