Class SshRsaPrivateKey
java.lang.Object
com.sshtools.j2ssh.transport.publickey.SshPrivateKey
com.sshtools.j2ssh.transport.publickey.rsa.SshRsaPrivateKey
- Version:
- $Revision: 1.19 $
- Author:
- $author$
-
Constructor Summary
ConstructorsConstructorDescriptionSshRsaPrivateKey(byte[] encoded) Creates a new SshRsaPrivateKey object.SshRsaPrivateKey(RSAPrivateKey prv, RSAPublicKey pub) Creates a new SshRsaPrivateKey object. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]generateSignature(byte[] data) intbyte[]inthashCode()
-
Constructor Details
-
SshRsaPrivateKey
Creates a new SshRsaPrivateKey object.- Parameters:
prv-pub-
-
SshRsaPrivateKey
Creates a new SshRsaPrivateKey object.- Parameters:
encoded-- Throws:
InvalidSshKeyException
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getAlgorithmName
- Specified by:
getAlgorithmNamein classSshPrivateKey- Returns:
-
getBitLength
public int getBitLength()- Specified by:
getBitLengthin classSshPrivateKey- Returns:
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin classSshPrivateKey- Returns:
-
getPublicKey
- Specified by:
getPublicKeyin classSshPrivateKey- Returns:
-
generateSignature
public byte[] generateSignature(byte[] data) - Specified by:
generateSignaturein classSshPrivateKey- Parameters:
data-- Returns:
-