Class SshEd25519PrivateKeyJCE
java.lang.Object
com.sshtools.common.ssh.components.jce.SshEd25519PrivateKeyJCE
- All Implemented Interfaces:
SshEd25519PrivateKey,SshPrivateKey
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ASN_HEADER
public static final byte[] ASN_HEADER
-
-
Constructor Details
-
SshEd25519PrivateKeyJCE
public SshEd25519PrivateKeyJCE(byte[] sk, byte[] pk) throws InvalidKeySpecException, NoSuchAlgorithmException, IOException, NoSuchProviderException -
SshEd25519PrivateKeyJCE
-
-
Method Details
-
sign
Description copied from interface:SshPrivateKeyCreate a signature from the data.- Specified by:
signin interfaceSshPrivateKey- Returns:
- byte[]
- Throws:
IOException
-
sign
- Specified by:
signin interfaceSshPrivateKey- Throws:
IOException
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceSshPrivateKey
-
getJCEPrivateKey
- Specified by:
getJCEPrivateKeyin interfaceSshPrivateKey
-
getSeed
public byte[] getSeed()- Specified by:
getSeedin interfaceSshEd25519PrivateKey
-
hashCode
public int hashCode() -
equals
-