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