Class OpenSSLRSAPrivateCrtKey
java.lang.Object
org.conscrypt.OpenSSLRSAPrivateKey
org.conscrypt.OpenSSLRSAPrivateCrtKey
- All Implemented Interfaces:
Serializable, AsymmetricKey, DEREncodablePREVIEW, 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 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 OpenSSLRSAPrivateKey
ensureReadParams, getAlgorithm, getEncoded, getFormat, getInstance, getInstance, getModulus, getOpenSSLKey, getPrivateExponent, wrapJCAPrivateKeyForTLSStackOnly, wrapPlatformKeyMethods inherited from interface Destroyable
destroy, isDestroyedMethods inherited from interface Key
getAlgorithm, getEncoded, getFormatMethods inherited from interface RSAKey
getModulusMethods inherited from interface RSAPrivateKey
getParams, 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
-