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 booleanprivate OpenSSLKeyprivate BigIntegerprivate BigIntegerprivate static final long -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprivate voidbooleanbyte[](package private) static OpenSSLKeygetInstance(RSAPublicKey rsaPublicKey) inthashCode()private voidreadObject(ObjectInputStream stream) toString()private voidwriteObject(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:
getOpenSSLKeyin interfaceOpenSSLKeyHolder
-
getInstance
- Throws:
InvalidKeyException
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceKey
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin interfaceKey
-
ensureReadParams
private void ensureReadParams() -
getModulus
- Specified by:
getModulusin interfaceRSAKey
-
getPublicExponent
- Specified by:
getPublicExponentin interfaceRSAPublicKey
-
equals
-
hashCode
public int hashCode() -
toString
-
readObject
- Throws:
IOExceptionClassNotFoundException
-
writeObject
- Throws:
IOException
-