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 -
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, getModulusMethods inherited from class org.cryptacular.adapter.AbstractWrappedKey
getEncoded, getFormatMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyedMethods inherited from interface java.security.Key
getAlgorithm, getEncoded, getFormatMethods 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:
getPublicExponentin interfaceRSAPrivateCrtKey
-
getPrimeP
- Specified by:
getPrimePin interfaceRSAPrivateCrtKey
-
getPrimeQ
- Specified by:
getPrimeQin interfaceRSAPrivateCrtKey
-
getPrimeExponentP
- Specified by:
getPrimeExponentPin interfaceRSAPrivateCrtKey
-
getPrimeExponentQ
- Specified by:
getPrimeExponentQin interfaceRSAPrivateCrtKey
-
getCrtCoefficient
- Specified by:
getCrtCoefficientin interfaceRSAPrivateCrtKey
-
getPrivateExponent
- Specified by:
getPrivateExponentin interfaceRSAPrivateKey
-