Class Ssh2RsaPrivateKey
java.lang.Object
com.sshtools.common.ssh.components.jce.Ssh2BaseJCEPrivateKey
com.sshtools.common.ssh.components.jce.Ssh2BaseRsaPrivateKey
com.sshtools.common.ssh.components.jce.Ssh2RsaPrivateKey
- All Implemented Interfaces:
SshPrivateKey,SshRsaPrivateKey
RSA private key implementation for the SSH2 protocol.
- Author:
- Lee David Painter
-
Field Summary
Fields inherited from class com.sshtools.common.ssh.components.jce.Ssh2BaseJCEPrivateKey
customProvider, prv -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.sshtools.common.ssh.components.jce.Ssh2BaseRsaPrivateKey
doSignMethods inherited from class com.sshtools.common.ssh.components.jce.Ssh2BaseJCEPrivateKey
getJCESignature
-
Constructor Details
-
Ssh2RsaPrivateKey
-
Ssh2RsaPrivateKey
public Ssh2RsaPrivateKey(BigInteger modulus, BigInteger privateExponent) throws NoSuchAlgorithmException, InvalidKeySpecException
-
-
Method Details
-
sign
Description copied from interface:SshPrivateKeyCreate a signature from the data.- Specified by:
signin interfaceSshPrivateKey- Specified by:
signin interfaceSshRsaPrivateKey- Returns:
- byte[]
- Throws:
IOException
-
sign
- Specified by:
signin interfaceSshPrivateKey- Throws:
IOException
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceSshPrivateKey
-
getModulus
- Specified by:
getModulusin interfaceSshRsaPrivateKey
-
getPrivateExponent
- Specified by:
getPrivateExponentin interfaceSshRsaPrivateKey
-
getJCEPrivateKey
- Specified by:
getJCEPrivateKeyin interfaceSshPrivateKey- Overrides:
getJCEPrivateKeyin classSsh2BaseJCEPrivateKey
-
hashCode
public int hashCode() -
equals
-