Package org.conscrypt
Class OpenSslEdDsaPublicKey
java.lang.Object
org.conscrypt.OpenSslEdDsaPublicKey
- All Implemented Interfaces:
Serializable,Key,PublicKey,OpenSSLKeyHolder
An OpenSSL EdDSA public key.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOpenSslEdDsaPublicKey(byte[] coordinateBytes) OpenSslEdDsaPublicKey(EncodedKeySpec keySpec) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]private static OpenSSLKeygetOpenSslKeyFromRaw(byte[] raw) private static OpenSSLKeygetOpenSslKeyFromX509(byte[] x509Encoded) (package private) byte[]getRaw()inthashCode()private voidreadObject(ObjectInputStream stream) private voidwriteObject(ObjectOutputStream stream)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
publicKeyBytes
private byte[] publicKeyBytes -
key
-
-
Constructor Details
-
OpenSslEdDsaPublicKey
- Throws:
InvalidKeySpecException
-
OpenSslEdDsaPublicKey
public OpenSslEdDsaPublicKey(byte[] coordinateBytes)
-
-
Method Details
-
getOpenSslKeyFromX509
private static OpenSSLKey getOpenSslKeyFromX509(byte[] x509Encoded) throws OpenSSLX509CertificateFactory.ParsingException -
getOpenSslKeyFromRaw
private static OpenSSLKey getOpenSslKeyFromRaw(byte[] raw) throws OpenSSLX509CertificateFactory.ParsingException -
getAlgorithm
- Specified by:
getAlgorithmin interfaceKey
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin interfaceKey
-
getRaw
byte[] getRaw() -
getOpenSSLKey
- Specified by:
getOpenSSLKeyin interfaceOpenSSLKeyHolder
-
equals
-
hashCode
public int hashCode() -
readObject
- Throws:
IOExceptionClassNotFoundException
-
writeObject
- Throws:
IOException
-