com.maverick.ssh.components.jce
Class Ssh1RsaPublicKey
java.lang.Object
com.maverick.ssh.components.jce.Ssh2RsaPublicKey
com.maverick.ssh.components.jce.Ssh1RsaPublicKey
- All Implemented Interfaces:
- SshPublicKey, SshRsaPublicKey
- public class Ssh1RsaPublicKey
- extends Ssh2RsaPublicKey
RSA public key implementation for the SSH1 protocol. Different implementations
are required for SSH1 & SSH2 because of the way the keys are represented in the
protocol encoding.
- Author:
- Lee David Painter
|
Constructor Summary |
Ssh1RsaPublicKey(java.math.BigInteger modulus,
java.math.BigInteger publicExponent)
|
Ssh1RsaPublicKey(java.security.interfaces.RSAPublicKey pub)
|
|
Method Summary |
java.lang.String |
getAlgorithm()
The algorithm name "rsa1" |
byte[] |
getEncoded()
Get the encoded format required by SSH1 |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Ssh1RsaPublicKey
public Ssh1RsaPublicKey(java.security.interfaces.RSAPublicKey pub)
Ssh1RsaPublicKey
public Ssh1RsaPublicKey(java.math.BigInteger modulus,
java.math.BigInteger publicExponent)
throws java.security.NoSuchAlgorithmException,
java.security.spec.InvalidKeySpecException
getEncoded
public byte[] getEncoded()
throws SshException
- Get the encoded format required by SSH1
- Specified by:
getEncoded in interface SshPublicKey- Overrides:
getEncoded in class Ssh2RsaPublicKey
- Throws:
SshException
getAlgorithm
public java.lang.String getAlgorithm()
- The algorithm name "rsa1"
- Specified by:
getAlgorithm in interface SshPublicKey- Overrides:
getAlgorithm in class Ssh2RsaPublicKey
Copyright © 2003-2008 SSHTools LTD. All Rights Reserved.