de.flexiprovider.core.rsa
Class RSAPrivateKeySpec

java.lang.Object
  |
  +--java.security.spec.RSAPrivateKeySpec
        |
        +--de.flexiprovider.core.rsa.RSAPrivateKeySpec
All Implemented Interfaces:
KeySpec, java.security.spec.KeySpec, RSAPrivKeySpecInterface

public class RSAPrivateKeySpec
extends java.security.spec.RSAPrivateKeySpec
implements RSAPrivKeySpecInterface


Constructor Summary
RSAPrivateKeySpec(java.math.BigInteger n, java.math.BigInteger d)
           
RSAPrivateKeySpec(FlexiBigInt n, FlexiBigInt d)
           
RSAPrivateKeySpec(java.security.spec.RSAPrivateKeySpec keySpec)
          Create a new RSAPrivateKeySpec out of the given RSAPrivateKeySpec.
 
Method Summary
 FlexiBigInt getD()
           
 FlexiBigInt getN()
           
 
Methods inherited from class java.security.spec.RSAPrivateKeySpec
getModulus, getPrivateExponent
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSAPrivateKeySpec

public RSAPrivateKeySpec(java.math.BigInteger n,
                         java.math.BigInteger d)

RSAPrivateKeySpec

public RSAPrivateKeySpec(java.security.spec.RSAPrivateKeySpec keySpec)
Create a new RSAPrivateKeySpec out of the given RSAPrivateKeySpec.
Parameters:
keySpec - the RSAPrivateKeySpec

RSAPrivateKeySpec

public RSAPrivateKeySpec(FlexiBigInt n,
                         FlexiBigInt d)
Method Detail

getN

public FlexiBigInt getN()
Specified by:
getN in interface RSAPrivKeySpecInterface
Returns:
the modulus n

getD

public FlexiBigInt getD()
Specified by:
getD in interface RSAPrivKeySpecInterface
Returns:
the private exponent d