Package org.conscrypt
Class OpenSslEdDsaPrivateKey
java.lang.Object
org.conscrypt.OpenSslEdDsaPrivateKey
- All Implemented Interfaces:
Serializable,Key,PrivateKey,Destroyable,OpenSSLKeyHolder
An OpenSSL EdDSA private key.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOpenSslEdDsaPrivateKey(byte[] raw) OpenSslEdDsaPrivateKey(EncodedKeySpec keySpec) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()booleanbyte[]private static OpenSSLKeygetOpenSslKeyFromPkcS8(byte[] pkcs8Encoded) private static OpenSSLKeygetOpenSslKeyFromRaw(byte[] raw) (package private) byte[]getRaw()inthashCode()booleanprivate voidreadObject(ObjectInputStream stream) private voidwriteObject(ObjectOutputStream stream)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
privateKeyBytes
private byte[] privateKeyBytes -
key
-
-
Constructor Details
-
OpenSslEdDsaPrivateKey
- Throws:
InvalidKeySpecException
-
OpenSslEdDsaPrivateKey
public OpenSslEdDsaPrivateKey(byte[] raw)
-
-
Method Details
-
getOpenSslKeyFromPkcS8
private static OpenSSLKey getOpenSslKeyFromPkcS8(byte[] pkcs8Encoded) 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
-
destroy
public void destroy()- Specified by:
destroyin interfaceDestroyable
-
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyedin interfaceDestroyable
-
equals
-
hashCode
public int hashCode() -
readObject
- Throws:
IOExceptionClassNotFoundException
-
writeObject
- Throws:
IOException
-