public interface SSHSignature
| 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[] message,
java.security.PrivateKey privateKey,
java.security.SecureRandom secureRandom)
Generate an SSH-format signature for the message and private key.
|
java.lang.String |
getKeyFormat()
Returns the supported signature formats.
|
boolean |
verifySignature(byte[] message,
byte[] signature,
java.security.PublicKey publicKey)
Verifies a SSH-format signature for a given key.
|
java.lang.String getKeyFormat()
java.security.PublicKey decodePublicKey(byte[] encoded)
throws java.io.IOException
java.io.IOExceptionbyte[] encodePublicKey(java.security.PublicKey publicKey)
throws java.io.IOException
java.io.IOExceptionboolean verifySignature(byte[] message,
byte[] signature,
java.security.PublicKey publicKey)
throws java.io.IOException
java.io.IOExceptionbyte[] generateSignature(byte[] message,
java.security.PrivateKey privateKey,
java.security.SecureRandom secureRandom)
throws java.io.IOException
java.io.IOException