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 SshRsaPrivateCrtKey
SshException
public BigInteger getCrtCoefficient()
getCrtCoefficient
in interface SshRsaPrivateCrtKey
public BigInteger getPrimeExponentP()
getPrimeExponentP
in interface SshRsaPrivateCrtKey
public BigInteger getPrimeExponentQ()
getPrimeExponentQ
in interface SshRsaPrivateCrtKey
public BigInteger getPrimeP()
getPrimeP
in interface SshRsaPrivateCrtKey
public BigInteger getPrimeQ()
getPrimeQ
in interface SshRsaPrivateCrtKey
public BigInteger getPublicExponent()
getPublicExponent
in interface SshRsaPrivateCrtKey
public BigInteger getModulus()
getModulus
in interface SshRsaPrivateKey
public BigInteger getPrivateExponent()
getPrivateExponent
in interface SshRsaPrivateKey
public byte[] sign(byte[] data) throws IOException
SshPrivateKey
sign
in interface SshPrivateKey
sign
in interface SshRsaPrivateKey
IOException
public byte[] sign(byte[] msg, String signingAlgorithm) throws IOException
sign
in interface SshPrivateKey
IOException
public String getAlgorithm()
getAlgorithm
in interface SshPrivateKey
public PrivateKey getJCEPrivateKey()
getJCEPrivateKey
in interface SshPrivateKey
getJCEPrivateKey
in interface SshRsaPrivateCrtKey
Copyright © 2024. All rights reserved.