public class Ssh2RsaPrivateKey extends Ssh2BaseRsaPrivateKey implements SshRsaPrivateKey
customProvider, prv| Constructor and Description |
|---|
Ssh2RsaPrivateKey(BigInteger modulus,
BigInteger privateExponent) |
Ssh2RsaPrivateKey(RSAPrivateKey prv) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAlgorithm() |
PrivateKey |
getJCEPrivateKey() |
BigInteger |
getModulus() |
BigInteger |
getPrivateExponent() |
int |
hashCode() |
byte[] |
sign(byte[] data)
Create a signature from the data.
|
byte[] |
sign(byte[] data,
String signingAlgorithm) |
doSigngetJCESignaturepublic Ssh2RsaPrivateKey(RSAPrivateKey prv)
public Ssh2RsaPrivateKey(BigInteger modulus, BigInteger privateExponent) throws NoSuchAlgorithmException, InvalidKeySpecException
public byte[] sign(byte[] data)
throws IOException
SshPrivateKeysign in interface SshPrivateKeysign in interface SshRsaPrivateKeyIOExceptionpublic byte[] sign(byte[] data,
String signingAlgorithm)
throws IOException
sign in interface SshPrivateKeyIOExceptionpublic String getAlgorithm()
getAlgorithm in interface SshPrivateKeypublic BigInteger getModulus()
getModulus in interface SshRsaPrivateKeypublic BigInteger getPrivateExponent()
getPrivateExponent in interface SshRsaPrivateKeypublic PrivateKey getJCEPrivateKey()
getJCEPrivateKey in interface SshPrivateKeygetJCEPrivateKey in class Ssh2BaseJCEPrivateKeyCopyright © 2025. All rights reserved.