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 TypeMethodDescriptionboolean
byte[]
generateSignature
(byte[] data) int
byte[]
int
hashCode()
-
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:
getAlgorithmName
in classSshPrivateKey
- Returns:
-
getBitLength
public int getBitLength()- Specified by:
getBitLength
in classSshPrivateKey
- Returns:
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncoded
in classSshPrivateKey
- Returns:
-
getPublicKey
- Specified by:
getPublicKey
in classSshPrivateKey
- Returns:
-
generateSignature
public byte[] generateSignature(byte[] data) - Specified by:
generateSignature
in classSshPrivateKey
- Parameters:
data
-- Returns:
-