java.security.spec
Class RSAPrivateKeySpec

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.security.spec.RSAPrivateKeySpec
All Implemented Interfaces:
KeySpec sample code for java.security.spec.KeySpec definition code for java.security.spec.KeySpec
Direct Known Subclasses:
RSAMultiPrimePrivateCrtKeySpec sample code for java.security.spec.RSAMultiPrimePrivateCrtKeySpec definition code for java.security.spec.RSAMultiPrimePrivateCrtKeySpec , RSAPrivateCrtKeySpec sample code for java.security.spec.RSAPrivateCrtKeySpec definition code for java.security.spec.RSAPrivateCrtKeySpec

public class RSAPrivateKeySpec
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 private 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 , PKCS8EncodedKeySpec sample code for java.security.spec.PKCS8EncodedKeySpec definition code for java.security.spec.PKCS8EncodedKeySpec , RSAPublicKeySpec sample code for java.security.spec.RSAPublicKeySpec definition code for java.security.spec.RSAPublicKeySpec , RSAPrivateCrtKeySpec sample code for java.security.spec.RSAPrivateCrtKeySpec definition code for java.security.spec.RSAPrivateCrtKeySpec

Constructor Summary
RSAPrivateKeySpec sample code for java.security.spec.RSAPrivateKeySpec.RSAPrivateKeySpec(java.math.BigInteger, java.math.BigInteger) definition code for java.security.spec.RSAPrivateKeySpec.RSAPrivateKeySpec(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  privateExponent)
          Creates a new RSAPrivateKeySpec.
 
Method Summary
 BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger getModulus sample code for java.security.spec.RSAPrivateKeySpec.getModulus() definition code for java.security.spec.RSAPrivateKeySpec.getModulus() ()
          Returns the modulus.
 BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger getPrivateExponent sample code for java.security.spec.RSAPrivateKeySpec.getPrivateExponent() definition code for java.security.spec.RSAPrivateKeySpec.getPrivateExponent() ()
          Returns the private 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

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

public RSAPrivateKeySpec(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  privateExponent)
Creates a new RSAPrivateKeySpec.

Parameters:
modulus - the modulus
privateExponent - the private exponent
Method Detail

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

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

Returns:
the modulus

getPrivateExponent sample code for java.security.spec.RSAPrivateKeySpec.getPrivateExponent() definition code for java.security.spec.RSAPrivateKeySpec.getPrivateExponent()

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

Returns:
the private exponent