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
SshPrivateKey
sign
in interface SshPrivateKey
sign
in interface SshRsaPrivateKey
IOException
public String getAlgorithm()
getAlgorithm
in interface SshPrivateKey
public BigInteger getModulus()
getModulus
in interface SshRsaPrivateKey
public BigInteger getPrivateExponent()
getPrivateExponent
in interface SshRsaPrivateKey
Copyright © 2014. All rights reserved.