public class Ssh2RsaPrivateCrtKey extends Object implements SshRsaPrivateCrtKey
| Modifier and Type | Field and Description |
|---|---|
protected RSAPrivateCrtKey |
prv |
| Constructor and Description |
|---|
Ssh2RsaPrivateCrtKey(BigInteger modulus,
BigInteger publicExponent,
BigInteger privateExponent,
BigInteger primeP,
BigInteger primeQ,
BigInteger primeExponentP,
BigInteger primeExponentQ,
BigInteger crtCoefficient) |
Ssh2RsaPrivateCrtKey(RSAPrivateCrtKey prv) |
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
doPrivate(BigInteger input) |
String |
getAlgorithm() |
BigInteger |
getCrtCoefficient() |
BigInteger |
getModulus() |
BigInteger |
getPrimeExponentP() |
BigInteger |
getPrimeExponentQ() |
BigInteger |
getPrimeP() |
BigInteger |
getPrimeQ() |
BigInteger |
getPrivateExponent() |
BigInteger |
getPublicExponent() |
byte[] |
sign(byte[] msg)
Create a signature from the data.
|
protected RSAPrivateCrtKey prv
public Ssh2RsaPrivateCrtKey(RSAPrivateCrtKey prv)
public Ssh2RsaPrivateCrtKey(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient) throws NoSuchAlgorithmException, InvalidKeySpecException
public BigInteger doPrivate(BigInteger input) throws SshException
doPrivate in interface SshRsaPrivateCrtKeySshExceptionpublic BigInteger getCrtCoefficient()
getCrtCoefficient in interface SshRsaPrivateCrtKeypublic BigInteger getPrimeExponentP()
getPrimeExponentP in interface SshRsaPrivateCrtKeypublic BigInteger getPrimeExponentQ()
getPrimeExponentQ in interface SshRsaPrivateCrtKeypublic BigInteger getPrimeP()
getPrimeP in interface SshRsaPrivateCrtKeypublic BigInteger getPrimeQ()
getPrimeQ in interface SshRsaPrivateCrtKeypublic BigInteger getPublicExponent()
getPublicExponent in interface SshRsaPrivateCrtKeypublic BigInteger getModulus()
getModulus in interface SshRsaPrivateKeypublic BigInteger getPrivateExponent()
getPrivateExponent in interface SshRsaPrivateKeypublic byte[] sign(byte[] msg)
throws IOException
SshPrivateKeysign in interface SshPrivateKeysign in interface SshRsaPrivateKeyIOExceptionpublic String getAlgorithm()
getAlgorithm in interface SshPrivateKeyCopyright © 2016. All rights reserved.