public class Ssh2RsaPrivateKey extends Object implements SshRsaPrivateKey
| Modifier and Type | Field and Description |
|---|---|
protected RSAPrivateKey |
prv |
| Constructor and Description |
|---|
Ssh2RsaPrivateKey(BigInteger modulus,
BigInteger privateExponent) |
Ssh2RsaPrivateKey(RSAPrivateKey prv) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm() |
BigInteger |
getModulus() |
BigInteger |
getPrivateExponent() |
byte[] |
sign(byte[] data)
Create a signature from the data.
|
protected RSAPrivateKey prv
public Ssh2RsaPrivateKey(RSAPrivateKey prv)
public Ssh2RsaPrivateKey(BigInteger modulus, BigInteger privateExponent) throws NoSuchAlgorithmException, InvalidKeySpecException
public byte[] sign(byte[] data)
throws IOException
SshPrivateKeysign in interface SshPrivateKeysign in interface SshRsaPrivateKeyIOExceptionpublic String getAlgorithm()
getAlgorithm in interface SshPrivateKeypublic BigInteger getModulus()
getModulus in interface SshRsaPrivateKeypublic BigInteger getPrivateExponent()
getPrivateExponent in interface SshRsaPrivateKeyCopyright © 2014. All rights reserved.