public class Ssh2RsaPrivateCrtKey extends java.lang.Object implements SshRsaPrivateCrtKey
| Modifier and Type | Field and Description |
|---|---|
protected java.security.interfaces.RSAPrivateCrtKey |
prv |
| Constructor and Description |
|---|
Ssh2RsaPrivateCrtKey(java.math.BigInteger modulus,
java.math.BigInteger publicExponent,
java.math.BigInteger privateExponent,
java.math.BigInteger primeP,
java.math.BigInteger primeQ,
java.math.BigInteger primeExponentP,
java.math.BigInteger primeExponentQ,
java.math.BigInteger crtCoefficient) |
Ssh2RsaPrivateCrtKey(java.security.interfaces.RSAPrivateCrtKey prv) |
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
doPrivate(java.math.BigInteger input) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAlgorithm() |
java.math.BigInteger |
getCrtCoefficient() |
java.security.PrivateKey |
getJCEPrivateKey() |
java.math.BigInteger |
getModulus() |
java.math.BigInteger |
getPrimeExponentP() |
java.math.BigInteger |
getPrimeExponentQ() |
java.math.BigInteger |
getPrimeP() |
java.math.BigInteger |
getPrimeQ() |
java.math.BigInteger |
getPrivateExponent() |
java.math.BigInteger |
getPublicExponent() |
int |
hashCode() |
byte[] |
sign(byte[] data)
Create a signature from the data.
|
byte[] |
sign(byte[] msg,
java.lang.String signingAlgorithm) |
public Ssh2RsaPrivateCrtKey(java.security.interfaces.RSAPrivateCrtKey prv)
public Ssh2RsaPrivateCrtKey(java.math.BigInteger modulus,
java.math.BigInteger publicExponent,
java.math.BigInteger privateExponent,
java.math.BigInteger primeP,
java.math.BigInteger primeQ,
java.math.BigInteger primeExponentP,
java.math.BigInteger primeExponentQ,
java.math.BigInteger crtCoefficient)
throws java.security.NoSuchAlgorithmException,
java.security.spec.InvalidKeySpecException
java.security.NoSuchAlgorithmExceptionjava.security.spec.InvalidKeySpecExceptionpublic java.math.BigInteger doPrivate(java.math.BigInteger input)
throws SshException
doPrivate in interface SshRsaPrivateCrtKeySshExceptionpublic java.math.BigInteger getCrtCoefficient()
getCrtCoefficient in interface SshRsaPrivateCrtKeypublic java.math.BigInteger getPrimeExponentP()
getPrimeExponentP in interface SshRsaPrivateCrtKeypublic java.math.BigInteger getPrimeExponentQ()
getPrimeExponentQ in interface SshRsaPrivateCrtKeypublic java.math.BigInteger getPrimeP()
getPrimeP in interface SshRsaPrivateCrtKeypublic java.math.BigInteger getPrimeQ()
getPrimeQ in interface SshRsaPrivateCrtKeypublic java.math.BigInteger getPublicExponent()
getPublicExponent in interface SshRsaPrivateCrtKeypublic java.math.BigInteger getModulus()
getModulus in interface SshRsaPrivateKeypublic java.math.BigInteger getPrivateExponent()
getPrivateExponent in interface SshRsaPrivateKeypublic byte[] sign(byte[] data)
throws java.io.IOException
SshPrivateKeysign in interface SshPrivateKeysign in interface SshRsaPrivateKeyjava.io.IOExceptionpublic byte[] sign(byte[] msg,
java.lang.String signingAlgorithm)
throws java.io.IOException
sign in interface SshPrivateKeyjava.io.IOExceptionpublic java.lang.String getAlgorithm()
getAlgorithm in interface SshPrivateKeypublic java.security.PrivateKey getJCEPrivateKey()
getJCEPrivateKey in interface SshPrivateKeygetJCEPrivateKey in interface SshRsaPrivateCrtKeypublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2022. All rights reserved.