public class RSASHA512Verify extends java.lang.Object implements SSHSignature
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID_RSA_SHA_2_512 |
| 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.
|
static RSASHA512Verify |
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 ID_RSA_SHA_2_512
public static RSASHA512Verify get()
public byte[] generateSignature(byte[] message,
java.security.PrivateKey privateKey,
java.security.SecureRandom secureRandom)
throws java.io.IOException
SSHSignaturegenerateSignature in interface SSHSignaturejava.io.IOExceptionpublic java.lang.String getKeyFormat()
SSHSignaturegetKeyFormat in interface SSHSignaturepublic java.security.PublicKey decodePublicKey(byte[] encoded)
throws java.io.IOException
SSHSignaturedecodePublicKey in interface SSHSignaturejava.io.IOExceptionpublic byte[] encodePublicKey(java.security.PublicKey publicKey)
throws java.io.IOException
SSHSignatureencodePublicKey in interface SSHSignaturejava.io.IOExceptionpublic boolean verifySignature(byte[] message,
byte[] sshSig,
java.security.PublicKey publicKey)
throws java.io.IOException
SSHSignatureverifySignature in interface SSHSignaturejava.io.IOException