Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
com.sshtools.j2ssh.transport.publickey.SshPublicKey
com.sshtools.j2ssh.transport.publickey.rsa.SshRsaPublicKey
public class SshRsaPublicKey
extends SshPublicKey
Constructor Summary | |
| |
|
Method Summary | |
String | |
int | |
byte[] | |
boolean |
|
Methods inherited from class com.sshtools.j2ssh.transport.publickey.SshPublicKey | |
equals , getAlgorithmName , getBitLength , getEncoded , getFingerprint , hashCode , verifySignature |
public SshRsaPublicKey(RSAPublicKey key)
Creates a new SshRsaPublicKey object.
- Parameters:
key
-
public SshRsaPublicKey(byte[] encoded) throws InvalidSshKeyException
Creates a new SshRsaPublicKey object.
- Parameters:
encoded
-
- Throws:
InvalidSshKeyException
-
public String getAlgorithmName()
- Overrides:
- getAlgorithmName in interface SshPublicKey
- Returns:
public boolean verifySignature(byte[] signature, byte[] data) throws InvalidSshKeySignatureException
- Overrides:
- verifySignature in interface SshPublicKey
- Parameters:
signature
-data
-
- Returns:
- Throws:
InvalidSshKeySignatureException
-