Package com.trilead.ssh2.signature
Class RSASHA1Verify
- java.lang.Object
-
- com.trilead.ssh2.signature.RSASHA1Verify
-
public class RSASHA1Verify extends java.lang.ObjectRSASHA1Verify.
-
-
Constructor Summary
Constructors Constructor Description RSASHA1Verify()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RSAPublicKeydecodeSSHRSAPublicKey(byte[] key)static RSASignaturedecodeSSHRSASignature(byte[] sig)static byte[]encodeSSHRSAPublicKey(RSAPublicKey pk)static byte[]encodeSSHRSASignature(RSASignature sig)static RSASignaturegenerateSignature(byte[] message, RSAPrivateKey pk)static booleanverifySignature(byte[] message, RSASignature ds, RSAPublicKey dpk)
-
-
-
Method Detail
-
decodeSSHRSAPublicKey
public static RSAPublicKey decodeSSHRSAPublicKey(byte[] key) throws java.io.IOException
- Throws:
java.io.IOException
-
encodeSSHRSAPublicKey
public static byte[] encodeSSHRSAPublicKey(RSAPublicKey pk) throws java.io.IOException
- Throws:
java.io.IOException
-
decodeSSHRSASignature
public static RSASignature decodeSSHRSASignature(byte[] sig) throws java.io.IOException
- Throws:
java.io.IOException
-
encodeSSHRSASignature
public static byte[] encodeSSHRSASignature(RSASignature sig) throws java.io.IOException
- Throws:
java.io.IOException
-
generateSignature
public static RSASignature generateSignature(byte[] message, RSAPrivateKey pk) throws java.io.IOException
- Throws:
java.io.IOException
-
verifySignature
public static boolean verifySignature(byte[] message, RSASignature ds, RSAPublicKey dpk) throws java.io.IOException- Throws:
java.io.IOException
-
-