public class Ssh2RsaPrivateKey extends Ssh2BaseRsaPrivateKey implements SshRsaPrivateKey
customProvider, prv| Constructor and Description |
|---|
Ssh2RsaPrivateKey(java.math.BigInteger modulus,
java.math.BigInteger privateExponent) |
Ssh2RsaPrivateKey(java.security.interfaces.RSAPrivateKey prv) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAlgorithm() |
java.security.PrivateKey |
getJCEPrivateKey() |
java.math.BigInteger |
getModulus() |
java.math.BigInteger |
getPrivateExponent() |
int |
hashCode() |
byte[] |
sign(byte[] data)
Create a signature from the data.
|
byte[] |
sign(byte[] data,
java.lang.String signingAlgorithm) |
doSigngetJCESignaturepublic Ssh2RsaPrivateKey(java.security.interfaces.RSAPrivateKey prv)
public Ssh2RsaPrivateKey(java.math.BigInteger modulus,
java.math.BigInteger privateExponent)
throws java.security.NoSuchAlgorithmException,
java.security.spec.InvalidKeySpecException
java.security.NoSuchAlgorithmExceptionjava.security.spec.InvalidKeySpecExceptionpublic byte[] sign(byte[] data)
throws java.io.IOException
SshPrivateKeysign in interface SshPrivateKeysign in interface SshRsaPrivateKeyjava.io.IOExceptionpublic byte[] sign(byte[] data,
java.lang.String signingAlgorithm)
throws java.io.IOException
sign in interface SshPrivateKeyjava.io.IOExceptionpublic java.lang.String getAlgorithm()
getAlgorithm in interface SshPrivateKeypublic java.math.BigInteger getModulus()
getModulus in interface SshRsaPrivateKeypublic java.math.BigInteger getPrivateExponent()
getPrivateExponent in interface SshRsaPrivateKeypublic java.security.PrivateKey getJCEPrivateKey()
getJCEPrivateKey in interface SshPrivateKeygetJCEPrivateKey in class Ssh2BaseJCEPrivateKeypublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2022. All rights reserved.