Package org.conscrypt
Class OpenSSLECPublicKey
java.lang.Object
org.conscrypt.OpenSSLECPublicKey
- All Implemented Interfaces:
Serializable,ECKey,ECPublicKey,Key,PublicKey,OpenSSLKeyHolder
An implementation of a
PublicKey for EC keys based on BoringSSL.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprotected OpenSSLECGroupContextprotected OpenSSLKeyprivate static final long -
Constructor Summary
ConstructorsConstructorDescriptionOpenSSLECPublicKey(ECPublicKeySpec ecKeySpec) OpenSSLECPublicKey(OpenSSLECGroupContext group, OpenSSLKey key) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[](package private) static OpenSSLKeygetInstance(ECPublicKey ecPublicKey) private ECPointgetW()inthashCode()private voidreadObject(ObjectInputStream stream) toString()private voidwriteObject(ObjectOutputStream stream)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
ALGORITHM
- See Also:
-
key
-
group
-
-
Constructor Details
-
OpenSSLECPublicKey
OpenSSLECPublicKey(OpenSSLECGroupContext group, OpenSSLKey key) -
OpenSSLECPublicKey
OpenSSLECPublicKey(OpenSSLKey key) -
OpenSSLECPublicKey
OpenSSLECPublicKey(ECPublicKeySpec ecKeySpec) throws InvalidKeySpecException - Throws:
InvalidKeySpecException
-
-
Method Details
-
getInstance
- Throws:
InvalidKeyException
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceKey
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin interfaceKey
-
getParams
-
getPublicKey
-
getW
- Specified by:
getWin interfaceECPublicKey
-
getOpenSSLKey
- Specified by:
getOpenSSLKeyin interfaceOpenSSLKeyHolder
-
equals
-
hashCode
public int hashCode() -
toString
-
readObject
- Throws:
IOExceptionClassNotFoundException
-
writeObject
- Throws:
IOException
-