com.sshtools.j2ssh.transport.publickey.rsa
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 |
SshRsaPublicKey(byte[] encoded)
Creates a new SshRsaPublicKey object. |
SshRsaPublicKey(java.security.interfaces.RSAPublicKey key)
Creates a new SshRsaPublicKey object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
SshRsaPublicKey
public SshRsaPublicKey(java.security.interfaces.RSAPublicKey key)
- Creates a new SshRsaPublicKey object.
- Parameters:
key
-
SshRsaPublicKey
public SshRsaPublicKey(byte[] encoded)
throws InvalidSshKeyException
- Creates a new SshRsaPublicKey object.
- Parameters:
encoded
-
- Throws:
InvalidSshKeyException
getAlgorithmName
public java.lang.String getAlgorithmName()
- Specified by:
getAlgorithmName
in class SshPublicKey
- Returns:
getBitLength
public int getBitLength()
- Specified by:
getBitLength
in class SshPublicKey
- Returns:
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in class SshPublicKey
- Returns:
verifySignature
public boolean verifySignature(byte[] signature,
byte[] data)
throws InvalidSshKeySignatureException
- Specified by:
verifySignature
in class SshPublicKey
- Parameters:
signature
- data
-
- Returns:
-
- Throws:
InvalidSshKeySignatureException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.