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) |
doSign
getJCESignature
public Ssh2RsaPrivateKey(RSAPrivateKey prv)
public Ssh2RsaPrivateKey(BigInteger modulus, BigInteger privateExponent) throws NoSuchAlgorithmException, InvalidKeySpecException
public byte[] sign(byte[] data) throws IOException
SshPrivateKey
sign
in interface SshPrivateKey
sign
in interface SshRsaPrivateKey
IOException
public byte[] sign(byte[] data, String signingAlgorithm) throws IOException
sign
in interface SshPrivateKey
IOException
public String getAlgorithm()
getAlgorithm
in interface SshPrivateKey
public BigInteger getModulus()
getModulus
in interface SshRsaPrivateKey
public BigInteger getPrivateExponent()
getPrivateExponent
in interface SshRsaPrivateKey
public PrivateKey getJCEPrivateKey()
getJCEPrivateKey
in interface SshPrivateKey
getJCEPrivateKey
in class Ssh2BaseJCEPrivateKey
Copyright © 2024. All rights reserved.