public class Ssh1RsaPublicKey extends Ssh2RsaPublicKey
Constructor and Description |
---|
Ssh1RsaPublicKey(BigInteger modulus,
BigInteger publicExponent) |
Ssh1RsaPublicKey(RSAPublicKey pub) |
Modifier and Type | Method and Description |
---|---|
BigInteger |
doPublic(BigInteger input) |
String |
getAlgorithm()
The algorithm name "rsa1"
|
byte[] |
getEncoded()
Get the encoded format required by SSH1
|
int |
getVersion() |
equals, getBitLength, getEncodingAlgorithm, getFingerprint, getJCEPublicKey, getModulus, getPriority, getPublicExponent, getSecurityLevel, getSignatureLength, getSigningAlgorithm, hashCode, init, test, verifySignature
public Ssh1RsaPublicKey(RSAPublicKey pub)
public Ssh1RsaPublicKey(BigInteger modulus, BigInteger publicExponent) throws NoSuchAlgorithmException, InvalidKeySpecException
public byte[] getEncoded() throws SshException
getEncoded
in interface SshPublicKey
getEncoded
in class Ssh2RsaPublicKey
SshException
public String getAlgorithm()
getAlgorithm
in interface SshPublicKey
getAlgorithm
in interface SecureComponent
getAlgorithm
in class Ssh2RsaPublicKey
public int getVersion()
getVersion
in interface SshRsaPublicKey
getVersion
in class Ssh2RsaPublicKey
public BigInteger doPublic(BigInteger input)
doPublic
in interface SshRsaPublicKey
doPublic
in class Ssh2RsaPublicKey
Copyright © 2024. All rights reserved.