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 String
protected OpenSSLECGroupContext
protected OpenSSLKey
private static final long
-
Constructor Summary
ConstructorsConstructorDescriptionOpenSSLECPublicKey
(ECPublicKeySpec ecKeySpec) OpenSSLECPublicKey
(OpenSSLECGroupContext group, OpenSSLKey key) -
Method Summary
Modifier and TypeMethodDescriptionboolean
byte[]
(package private) static OpenSSLKey
getInstance
(ECPublicKey ecPublicKey) private ECPoint
getW()
int
hashCode()
private void
readObject
(ObjectInputStream stream) toString()
private void
writeObject
(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:
getAlgorithm
in interfaceKey
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncoded
in interfaceKey
-
getParams
-
getPublicKey
-
getW
- Specified by:
getW
in interfaceECPublicKey
-
getOpenSSLKey
- Specified by:
getOpenSSLKey
in interfaceOpenSSLKeyHolder
-
equals
-
hashCode
public int hashCode() -
toString
-
readObject
- Throws:
IOException
ClassNotFoundException
-
writeObject
- Throws:
IOException
-