com.maverick.ssh1
Class Ssh1RhostsRsaAuthentication

java.lang.Object
  extended bycom.maverick.ssh1.Ssh1RhostsRsaAuthentication
All Implemented Interfaces:
SshAuthentication

public class Ssh1RhostsRsaAuthentication
extends java.lang.Object
implements SshAuthentication

Provides rhosts rsa authentication for the SSH1 protocol.

Author:
Lee David Painter

Field Summary
 
Fields inherited from interface com.maverick.ssh.SshAuthentication
CANCELLED, COMPLETE, FAILED, FURTHER_AUTHENTICATION_REQUIRED, PUBLIC_KEY_ACCEPTABLE
 
Constructor Summary
Ssh1RhostsRsaAuthentication()
           
 
Method Summary
 java.lang.String getClientUsername()
          Get the user's username on the client computer
 java.lang.String getMethod()
          The SSH authentication method name
 SshPrivateKey getPrivateKey()
          Get the private key used for this authentication
 SshPublicKey getPublicKey()
          Set the public key used for this authentication
 java.lang.String getUsername()
          Get the username for this authentication attempt.
 void setClientUsername(java.lang.String clientUsername)
          Set the user's username on the client computer
 void setPrivateKey(SshPrivateKey prv)
          Set the private key for the authentication attempt
 void setPublicKey(SshPublicKey pub)
          Set the public key for the authentication attempt
 void setUsername(java.lang.String username)
          Set the username for this authentication attempt.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ssh1RhostsRsaAuthentication

public Ssh1RhostsRsaAuthentication()
Method Detail

setUsername

public void setUsername(java.lang.String username)
Description copied from interface: SshAuthentication
Set the username for this authentication attempt.

Specified by:
setUsername in interface SshAuthentication
Parameters:
username -

getUsername

public java.lang.String getUsername()
Description copied from interface: SshAuthentication
Get the username for this authentication attempt.

Specified by:
getUsername in interface SshAuthentication
Returns:
the username used.

getMethod

public java.lang.String getMethod()
Description copied from interface: SshAuthentication
The SSH authentication method name

Specified by:
getMethod in interface SshAuthentication
Returns:
String

setPublicKey

public void setPublicKey(SshPublicKey pub)
Set the public key for the authentication attempt

Parameters:
pub -

setPrivateKey

public void setPrivateKey(SshPrivateKey prv)
Set the private key for the authentication attempt

Parameters:
prv -

setClientUsername

public void setClientUsername(java.lang.String clientUsername)
Set the user's username on the client computer

Parameters:
clientUsername -

getClientUsername

public java.lang.String getClientUsername()
Get the user's username on the client computer

Returns:

getPrivateKey

public SshPrivateKey getPrivateKey()
Get the private key used for this authentication

Returns:

getPublicKey

public SshPublicKey getPublicKey()
Set the public key used for this authentication

Returns:


Copyright © 2003 3SP LTD. All Rights Reserved.