Package org.cryptacular.adapter
Class WrappedRSAPrivateCrtKey
java.lang.Object
org.cryptacular.adapter.AbstractWrappedKey<T>
org.cryptacular.adapter.AbstractWrappedRSAKey<org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters>
org.cryptacular.adapter.WrappedRSAPrivateCrtKey
- All Implemented Interfaces:
Serializable
,RSAKey
,RSAPrivateCrtKey
,RSAPrivateKey
,Key
,PrivateKey
,Destroyable
public class WrappedRSAPrivateCrtKey
extends AbstractWrappedRSAKey<org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters>
implements RSAPrivateCrtKey
JCE/JDK RSA private key that wraps the corresponding BC RSA private key type,
RSAPrivateCrtKeyParameters
.- Author:
- Middleware Services
- See Also:
-
Field Summary
Fields inherited from class org.cryptacular.adapter.AbstractWrappedKey
delegate, PKCS8_FORMAT, X509_FORMAT
Fields inherited from interface java.security.Key
serialVersionUID
Fields inherited from interface java.security.interfaces.RSAPrivateCrtKey
serialVersionUID
-
Constructor Summary
ConstructorsConstructorDescriptionWrappedRSAPrivateCrtKey
(org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters parameters) Creates a new instance that wraps the given BC RSA private key. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.cryptacular.adapter.AbstractWrappedRSAKey
getAlgorithm, getModulus
Methods inherited from class org.cryptacular.adapter.AbstractWrappedKey
getEncoded, getFormat
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
Methods inherited from interface java.security.Key
getAlgorithm, getEncoded, getFormat
Methods inherited from interface java.security.interfaces.RSAKey
getModulus, getParams
-
Constructor Details
-
WrappedRSAPrivateCrtKey
public WrappedRSAPrivateCrtKey(org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters parameters) Creates a new instance that wraps the given BC RSA private key.- Parameters:
parameters
- BC RSA private (certificate) key.
-
-
Method Details
-
getPublicExponent
- Specified by:
getPublicExponent
in interfaceRSAPrivateCrtKey
-
getPrimeP
- Specified by:
getPrimeP
in interfaceRSAPrivateCrtKey
-
getPrimeQ
- Specified by:
getPrimeQ
in interfaceRSAPrivateCrtKey
-
getPrimeExponentP
- Specified by:
getPrimeExponentP
in interfaceRSAPrivateCrtKey
-
getPrimeExponentQ
- Specified by:
getPrimeExponentQ
in interfaceRSAPrivateCrtKey
-
getCrtCoefficient
- Specified by:
getCrtCoefficient
in interfaceRSAPrivateCrtKey
-
getPrivateExponent
- Specified by:
getPrivateExponent
in interfaceRSAPrivateKey
-