com.sshtools.j2ssh.authentication

Class PasswordAuthenticationClient


public class PasswordAuthenticationClient
extends SshAuthenticationClient

Version:
$Revision: 1.22 $
Author:
$author$

Field Summary

protected String
password

Method Summary

void
authenticate(AuthenticationProtocolClient authentication, String serviceToStart)
boolean
canAuthenticate()
String
getMethodName()
Properties
getPersistableProperties()
void
reset()
void
setPassword(String password)
void
setPasswordChangePrompt(PasswordChangePrompt changePrompt)
void
setPersistableProperties(Properties properties)

Methods inherited from class com.sshtools.j2ssh.authentication.SshAuthenticationClient

authenticate, canAuthenticate, canPrompt, getAuthenticationPrompt, getMethodName, getPersistableProperties, getUsername, reset, setAuthenticationPrompt, setPersistableProperties, setUsername

Field Details

password

protected String password

Method Details

authenticate

public void authenticate(AuthenticationProtocolClient authentication,
                         String serviceToStart)
            throws IOException,
                   TerminatedStateException
Overrides:
authenticate in interface SshAuthenticationClient

canAuthenticate

public boolean canAuthenticate()
Overrides:
canAuthenticate in interface SshAuthenticationClient
Returns:

getMethodName

public final String getMethodName()
Overrides:
getMethodName in interface SshAuthenticationClient
Returns:

getPersistableProperties

public Properties getPersistableProperties()
Overrides:
getPersistableProperties in interface SshAuthenticationClient
Returns:

reset

public void reset()
Overrides:
reset in interface SshAuthenticationClient

setPassword

public final void setPassword(String password)
Parameters:
password -

setPasswordChangePrompt

public void setPasswordChangePrompt(PasswordChangePrompt changePrompt)
Parameters:
changePrompt -

setPersistableProperties

public void setPersistableProperties(Properties properties)
Overrides:
setPersistableProperties in interface SshAuthenticationClient
Parameters:
properties -

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