Package org.conscrypt
Class OpenSSLRSAPrivateCrtKey
java.lang.Object
org.conscrypt.OpenSSLRSAPrivateKey
org.conscrypt.OpenSSLRSAPrivateCrtKey
- All Implemented Interfaces:
Serializable,RSAKey,RSAPrivateCrtKey,RSAPrivateKey,Key,PrivateKey,Destroyable,OpenSSLKeyHolder
An implementation of
PrivateKey for RSA keys which uses BoringSSL to
perform all the operations.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BigIntegerprivate BigIntegerprivate BigIntegerprivate BigIntegerprivate BigIntegerprivate BigIntegerprivate static final longFields inherited from class org.conscrypt.OpenSSLRSAPrivateKey
fetchedParams, key, modulus, privateExponent -
Constructor Summary
ConstructorsConstructorDescriptionOpenSSLRSAPrivateCrtKey(RSAPrivateCrtKeySpec rsaKeySpec) OpenSSLRSAPrivateCrtKey(OpenSSLKey key, byte[][] params) -
Method Summary
Modifier and TypeMethodDescriptionboolean(package private) static OpenSSLKeygetInstance(RSAPrivateCrtKey rsaPrivateKey) final inthashCode()private static OpenSSLKeyinit(RSAPrivateCrtKeySpec rsaKeySpec) private voidreadObject(ObjectInputStream stream) (package private) voidreadParams(byte[][] params) toString()private voidwriteObject(ObjectOutputStream stream) Methods inherited from class org.conscrypt.OpenSSLRSAPrivateKey
ensureReadParams, getAlgorithm, getEncoded, getFormat, getInstance, getInstance, getModulus, getOpenSSLKey, getPrivateExponent, wrapJCAPrivateKeyForTLSStackOnly, wrapPlatformKeyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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, getParamsMethods inherited from interface java.security.interfaces.RSAPrivateKey
getPrivateExponent
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
publicExponent
-
primeP
-
primeQ
-
primeExponentP
-
primeExponentQ
-
crtCoefficient
-
-
Constructor Details
-
OpenSSLRSAPrivateCrtKey
OpenSSLRSAPrivateCrtKey(OpenSSLKey key) -
OpenSSLRSAPrivateCrtKey
OpenSSLRSAPrivateCrtKey(OpenSSLKey key, byte[][] params) -
OpenSSLRSAPrivateCrtKey
OpenSSLRSAPrivateCrtKey(RSAPrivateCrtKeySpec rsaKeySpec) throws InvalidKeySpecException - Throws:
InvalidKeySpecException
-
-
Method Details
-
init
- Throws:
InvalidKeySpecException
-
getInstance
- Throws:
InvalidKeyException
-
readParams
void readParams(byte[][] params) - Overrides:
readParamsin classOpenSSLRSAPrivateKey
-
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
-
equals
- Overrides:
equalsin classOpenSSLRSAPrivateKey
-
hashCode
public final int hashCode()- Overrides:
hashCodein classOpenSSLRSAPrivateKey
-
toString
- Overrides:
toStringin classOpenSSLRSAPrivateKey
-
readObject
- Throws:
IOExceptionClassNotFoundException
-
writeObject
- Throws:
IOException
-