Package org.conscrypt
Class OpenSSLX25519PublicKey
- java.lang.Object
-
- org.conscrypt.OpenSSLX25519PublicKey
-
- All Implemented Interfaces:
java.io.Serializable,java.security.Key,java.security.PublicKey,OpenSSLX25519Key
public class OpenSSLX25519PublicKey extends java.lang.Object implements OpenSSLX25519Key, java.security.PublicKey
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUIDprivate byte[]uCoordinateprivate static byte[]X509_PREAMBLE-
Fields inherited from interface org.conscrypt.OpenSSLX25519Key
X25519_KEY_SIZE_BYTES
-
-
Constructor Summary
Constructors Constructor Description OpenSSLX25519PublicKey(byte[] coordinateBytes)OpenSSLX25519PublicKey(java.security.spec.EncodedKeySpec keySpec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetAlgorithm()byte[]getEncoded()java.lang.StringgetFormat()byte[]getU()inthashCode()private voidreadObject(java.io.ObjectInputStream stream)private voidwriteObject(java.io.ObjectOutputStream stream)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
X509_PREAMBLE
private static final byte[] X509_PREAMBLE
-
uCoordinate
private final byte[] uCoordinate
-
-
Method Detail
-
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithmin interfacejava.security.Key
-
getFormat
public java.lang.String getFormat()
- Specified by:
getFormatin interfacejava.security.Key
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncodedin interfacejava.security.Key
-
getU
public byte[] getU()
- Specified by:
getUin interfaceOpenSSLX25519Key
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
readObject
private void readObject(java.io.ObjectInputStream stream) throws java.io.IOException, java.lang.ClassNotFoundException- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
writeObject
private void writeObject(java.io.ObjectOutputStream stream) throws java.io.IOException- Throws:
java.io.IOException
-
-