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 BigInteger
private BigInteger
private BigInteger
private BigInteger
private BigInteger
private BigInteger
private static final long
Fields 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 OpenSSLKey
getInstance
(RSAPrivateCrtKey rsaPrivateKey) final int
hashCode()
private static OpenSSLKey
init
(RSAPrivateCrtKeySpec rsaKeySpec) private void
readObject
(ObjectInputStream stream) (package private) void
readParams
(byte[][] params) toString()
private void
writeObject
(ObjectOutputStream stream) Methods inherited from class org.conscrypt.OpenSSLRSAPrivateKey
ensureReadParams, getAlgorithm, getEncoded, getFormat, getInstance, getInstance, getModulus, getOpenSSLKey, getPrivateExponent, wrapJCAPrivateKeyForTLSStackOnly, wrapPlatformKey
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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
Methods 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:
readParams
in classOpenSSLRSAPrivateKey
-
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
-
equals
- Overrides:
equals
in classOpenSSLRSAPrivateKey
-
hashCode
public final int hashCode()- Overrides:
hashCode
in classOpenSSLRSAPrivateKey
-
toString
- Overrides:
toString
in classOpenSSLRSAPrivateKey
-
readObject
- Throws:
IOException
ClassNotFoundException
-
writeObject
- Throws:
IOException
-