com.sshtools.j2ssh.transport.publickey.rsa
Class SshRsaPublicKey

java.lang.Object
  extended by com.sshtools.j2ssh.transport.publickey.SshPublicKey
      extended by 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.
 
Method Summary
 java.lang.String getAlgorithmName()
           
 int getBitLength()
           
 byte[] getEncoded()
           
 boolean verifySignature(byte[] signature, byte[] data)
           
 
Methods inherited from class com.sshtools.j2ssh.transport.publickey.SshPublicKey
equals, getFingerprint, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.