de.flexiprovider.core.rsa
Class RSAPrivateCrtKeySpec
java.lang.Object
|
+--java.security.spec.RSAPrivateKeySpec
|
+--java.security.spec.RSAPrivateCrtKeySpec
|
+--de.flexiprovider.core.rsa.RSAPrivateCrtKeySpec
- All Implemented Interfaces:
- KeySpec, java.security.spec.KeySpec, RSAPrivKeySpecInterface
- Direct Known Subclasses:
- MeRSAPrivateKeySpec, MpRSAPrivateKeySpec
- public class RSAPrivateCrtKeySpec
- extends java.security.spec.RSAPrivateCrtKeySpec
- implements RSAPrivKeySpecInterface
|
Constructor Summary |
RSAPrivateCrtKeySpec(java.math.BigInteger n,
java.math.BigInteger e,
java.math.BigInteger d,
java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger dP,
java.math.BigInteger dQ,
java.math.BigInteger crtCoeff)
|
RSAPrivateCrtKeySpec(FlexiBigInt n,
FlexiBigInt e,
FlexiBigInt d,
FlexiBigInt p,
FlexiBigInt q,
FlexiBigInt dP,
FlexiBigInt dQ,
FlexiBigInt crtCoeff)
|
RSAPrivateCrtKeySpec(java.security.spec.RSAPrivateCrtKeySpec keySpec)
Create a new RSAPrivateCrtKeySpec out of the given
RSAPrivateKeySpec. |
| Methods inherited from class java.security.spec.RSAPrivateCrtKeySpec |
getCrtCoefficient, getPrimeExponentP, getPrimeExponentQ, getPrimeP, getPrimeQ, getPublicExponent |
| 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 |
RSAPrivateCrtKeySpec
public RSAPrivateCrtKeySpec(java.math.BigInteger n,
java.math.BigInteger e,
java.math.BigInteger d,
java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger dP,
java.math.BigInteger dQ,
java.math.BigInteger crtCoeff)
RSAPrivateCrtKeySpec
public RSAPrivateCrtKeySpec(java.security.spec.RSAPrivateCrtKeySpec keySpec)
- Create a new RSAPrivateCrtKeySpec out of the given
RSAPrivateKeySpec.
- Parameters:
keySpec - the RSAPrivateKeySpec
RSAPrivateCrtKeySpec
public RSAPrivateCrtKeySpec(FlexiBigInt n,
FlexiBigInt e,
FlexiBigInt d,
FlexiBigInt p,
FlexiBigInt q,
FlexiBigInt dP,
FlexiBigInt dQ,
FlexiBigInt crtCoeff)
getN
public FlexiBigInt getN()
- Specified by:
getN in interface RSAPrivKeySpecInterface
- Returns:
- the modulus n
getE
public FlexiBigInt getE()
- Returns:
- the public exponent e
getD
public FlexiBigInt getD()
- Specified by:
getD in interface RSAPrivKeySpecInterface
- Returns:
- the private exponent d
getP
public FlexiBigInt getP()
- Returns:
- the prime p
getQ
public FlexiBigInt getQ()
- Returns:
- the prime q
getDp
public FlexiBigInt getDp()
- Returns:
- the private exponent d mod (p-1)
getDq
public FlexiBigInt getDq()
- Returns:
- the private exponent d mod (q-1)
getCRTCoeff
public FlexiBigInt getCRTCoeff()
- Returns:
- the CRT coefficient