Class OpenSSLX25519PrivateKey
java.lang.Object
org.conscrypt.OpenSSLX25519PrivateKey
- All Implemented Interfaces:
Serializable, AsymmetricKey, DEREncodablePREVIEW, Key, PrivateKey, Destroyable, OpenSSLX25519Key
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]private static final longprivate byte[]Fields inherited from interface OpenSSLX25519Key
X25519_KEY_SIZE_BYTES -
Constructor Summary
ConstructorsConstructorDescriptionOpenSSLX25519PrivateKey(byte[] coordinateBytes) OpenSSLX25519PrivateKey(EncodedKeySpec keySpec) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()booleanbyte[]byte[]getU()inthashCode()booleanprivate voidreadObject(ObjectInputStream stream) private voidwriteObject(ObjectOutputStream stream) Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AsymmetricKey
getParams
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
PKCS8_PREAMBLE
private static final byte[] PKCS8_PREAMBLE -
uCoordinate
private byte[] uCoordinate
-
-
Constructor Details
-
OpenSSLX25519PrivateKey
- Throws:
InvalidKeySpecException
-
OpenSSLX25519PrivateKey
public OpenSSLX25519PrivateKey(byte[] coordinateBytes)
-
-
Method Details
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceKey
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin interfaceKey
-
getU
public byte[] getU()- Specified by:
getUin interfaceOpenSSLX25519Key
-
destroy
public void destroy()- Specified by:
destroyin interfaceDestroyable
-
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyedin interfaceDestroyable
-
equals
-
hashCode
-
readObject
- Throws:
IOExceptionClassNotFoundException
-
writeObject
- Throws:
IOException
-