public class Ed25519Verify extends java.lang.Object implements SSHSignature
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ED25519_ID
Identifies this as an Ed25519 key in the protocol.
|
| Modifier and Type | Method and Description |
|---|---|
java.security.PublicKey |
decodePublicKey(byte[] encoded)
Decode from SSH specification key to Java public key.
|
byte[] |
encodePublicKey(java.security.PublicKey publicKey)
Encode from Java public key to SSH specification.
|
byte[] |
generateSignature(byte[] msg,
java.security.PrivateKey privateKey,
java.security.SecureRandom secureRandom)
Generate an SSH-format signature for the message and private key.
|
static Ed25519Verify |
get() |
java.lang.String |
getKeyFormat()
Returns the supported signature formats.
|
boolean |
verifySignature(byte[] message,
byte[] sshSig,
java.security.PublicKey publicKey)
Verifies a SSH-format signature for a given key.
|
public static final java.lang.String ED25519_ID
public static Ed25519Verify get()
public byte[] encodePublicKey(java.security.PublicKey publicKey)
SSHSignatureencodePublicKey in interface SSHSignaturepublic java.security.PublicKey decodePublicKey(byte[] encoded)
throws java.io.IOException
SSHSignaturedecodePublicKey in interface SSHSignaturejava.io.IOExceptionpublic byte[] generateSignature(byte[] msg,
java.security.PrivateKey privateKey,
java.security.SecureRandom secureRandom)
throws java.io.IOException
SSHSignaturegenerateSignature in interface SSHSignaturejava.io.IOExceptionpublic boolean verifySignature(byte[] message,
byte[] sshSig,
java.security.PublicKey publicKey)
throws java.io.IOException
SSHSignatureverifySignature in interface SSHSignaturejava.io.IOExceptionpublic java.lang.String getKeyFormat()
SSHSignaturegetKeyFormat in interface SSHSignature