Class SshRsaPublicKey
- java.lang.Object
-
- com.sshtools.j2ssh.transport.publickey.SshPublicKey
-
- com.sshtools.j2ssh.transport.publickey.rsa.SshRsaPublicKey
-
public class SshRsaPublicKey extends SshPublicKey
- Version:
- $Revision: 1.19 $
- Author:
- $author$
-
-
Constructor Summary
Constructors Constructor Description SshRsaPublicKey(byte[] encoded)Creates a new SshRsaPublicKey object.SshRsaPublicKey(java.security.interfaces.RSAPublicKey key)Creates a new SshRsaPublicKey object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAlgorithmName()intgetBitLength()byte[]getEncoded()booleanverifySignature(byte[] signature, byte[] data)-
Methods inherited from class com.sshtools.j2ssh.transport.publickey.SshPublicKey
equals, getFingerprint, hashCode
-
-
-
-
Constructor Detail
-
SshRsaPublicKey
public SshRsaPublicKey(java.security.interfaces.RSAPublicKey key)
Creates a new SshRsaPublicKey object.- Parameters:
key-
-
SshRsaPublicKey
public SshRsaPublicKey(byte[] encoded) throws InvalidSshKeyExceptionCreates a new SshRsaPublicKey object.- Parameters:
encoded-- Throws:
InvalidSshKeyException
-
-
Method Detail
-
getAlgorithmName
public java.lang.String getAlgorithmName()
- Specified by:
getAlgorithmNamein classSshPublicKey- Returns:
-
getBitLength
public int getBitLength()
- Specified by:
getBitLengthin classSshPublicKey- Returns:
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncodedin classSshPublicKey- Returns:
-
verifySignature
public boolean verifySignature(byte[] signature, byte[] data) throws InvalidSshKeySignatureException- Specified by:
verifySignaturein classSshPublicKey- Parameters:
signature-data-- Returns:
- Throws:
InvalidSshKeySignatureException
-
-