Package org.conscrypt
Class OpenSSLRSAPublicKey
java.lang.Object
org.conscrypt.OpenSSLRSAPublicKey
- All Implemented Interfaces:
Serializable
,RSAKey
,RSAPublicKey
,Key
,PublicKey
,OpenSSLKeyHolder
An implementation of
PublicKey
for RSA keys which uses BoringSSL to
perform all the operations.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private OpenSSLKey
private BigInteger
private BigInteger
private static final long
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprivate void
boolean
byte[]
(package private) static OpenSSLKey
getInstance
(RSAPublicKey rsaPublicKey) int
hashCode()
private void
readObject
(ObjectInputStream stream) toString()
private void
writeObject
(ObjectOutputStream stream)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
key
-
publicExponent
-
modulus
-
fetchedParams
private transient boolean fetchedParams
-
-
Constructor Details
-
OpenSSLRSAPublicKey
OpenSSLRSAPublicKey(OpenSSLKey key) -
OpenSSLRSAPublicKey
OpenSSLRSAPublicKey(RSAPublicKeySpec spec) throws InvalidKeySpecException - Throws:
InvalidKeySpecException
-
-
Method Details
-
getOpenSSLKey
- Specified by:
getOpenSSLKey
in interfaceOpenSSLKeyHolder
-
getInstance
- Throws:
InvalidKeyException
-
getAlgorithm
- Specified by:
getAlgorithm
in interfaceKey
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncoded
in interfaceKey
-
ensureReadParams
private void ensureReadParams() -
getModulus
- Specified by:
getModulus
in interfaceRSAKey
-
getPublicExponent
- Specified by:
getPublicExponent
in interfaceRSAPublicKey
-
equals
-
hashCode
public int hashCode() -
toString
-
readObject
- Throws:
IOException
ClassNotFoundException
-
writeObject
- Throws:
IOException
-