public class RSASHA1Verify extends Object
| Constructor and Description |
|---|
RSASHA1Verify() |
| Modifier and Type | Method and Description |
|---|---|
static RSAPublicKey |
decodeSSHRSAPublicKey(byte[] key) |
static RSASignature |
decodeSSHRSASignature(byte[] sig) |
static byte[] |
encodeSSHRSAPublicKey(RSAPublicKey pk) |
static byte[] |
encodeSSHRSASignature(RSASignature sig) |
static RSASignature |
generateSignature(byte[] message,
RSAPrivateKey pk) |
static boolean |
verifySignature(byte[] message,
RSASignature ds,
RSAPublicKey dpk) |
public static RSAPublicKey decodeSSHRSAPublicKey(byte[] key) throws IOException
IOExceptionpublic static byte[] encodeSSHRSAPublicKey(RSAPublicKey pk) throws IOException
IOExceptionpublic static RSASignature decodeSSHRSASignature(byte[] sig) throws IOException
IOExceptionpublic static byte[] encodeSSHRSASignature(RSASignature sig) throws IOException
IOExceptionpublic static RSASignature generateSignature(byte[] message, RSAPrivateKey pk) throws IOException
IOExceptionpublic static boolean verifySignature(byte[] message,
RSASignature ds,
RSAPublicKey dpk)
throws IOException
IOExceptionCopyright © 2013. All Rights Reserved.