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) |
boolean |
equals(Object obj) |
String |
getAlgorithm() |
BigInteger |
getCrtCoefficient() |
PrivateKey |
getJCEPrivateKey() |
BigInteger |
getModulus() |
BigInteger |
getPrimeExponentP() |
BigInteger |
getPrimeExponentQ() |
BigInteger |
getPrimeP() |
BigInteger |
getPrimeQ() |
BigInteger |
getPrivateExponent() |
BigInteger |
getPublicExponent() |
int |
hashCode() |
byte[] |
sign(byte[] data)
Create a signature from the data.
|
byte[] |
sign(byte[] msg,
String signingAlgorithm) |
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[] data)
throws IOException
SshPrivateKeysign in interface SshPrivateKeysign in interface SshRsaPrivateKeyIOExceptionpublic byte[] sign(byte[] msg,
String signingAlgorithm)
throws IOException
sign in interface SshPrivateKeyIOExceptionpublic String getAlgorithm()
getAlgorithm in interface SshPrivateKeypublic PrivateKey getJCEPrivateKey()
getJCEPrivateKey in interface SshPrivateKeygetJCEPrivateKey in interface SshRsaPrivateCrtKeyCopyright © 2025. All rights reserved.