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

java.lang.Object
  extended by com.sshtools.j2ssh.transport.publickey.SshKeyPair
      extended by com.sshtools.j2ssh.transport.publickey.rsa.SshRsaKeyPair

public class SshRsaKeyPair
extends SshKeyPair

Version:
$Revision: 1.19 $
Author:
$author$

Constructor Summary
SshRsaKeyPair()
          Creates a new SshRsaKeyPair object.
 
Method Summary
 SshPrivateKey decodePrivateKey(byte[] encoded)
           
 SshPublicKey decodePublicKey(byte[] encoded)
           
 void generate(int bits)
           
 
Methods inherited from class com.sshtools.j2ssh.transport.publickey.SshKeyPair
getPrivateKey, getPublicKey, setPrivateKey, setPrivateKey, setPublicKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SshRsaKeyPair

public SshRsaKeyPair()
Creates a new SshRsaKeyPair object.

Method Detail

decodePrivateKey

public SshPrivateKey decodePrivateKey(byte[] encoded)
                               throws InvalidSshKeyException
Specified by:
decodePrivateKey in class SshKeyPair
Parameters:
encoded -
Returns:
Throws:
InvalidSshKeyException

decodePublicKey

public SshPublicKey decodePublicKey(byte[] encoded)
                             throws InvalidSshKeyException
Specified by:
decodePublicKey in class SshKeyPair
Parameters:
encoded -
Returns:
Throws:
InvalidSshKeyException

generate

public void generate(int bits)
Specified by:
generate in class SshKeyPair
Parameters:
bits -


Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.