com.sshtools.common.authentication

Class PasswordAuthenticationDialog

Implemented Interfaces:
SshAuthenticationPrompt

public class PasswordAuthenticationDialog
extends JDialog
implements SshAuthenticationPrompt

Version:
$Revision: 1.16 $
Author:
$author$

Constructor Summary

PasswordAuthenticationDialog()
Creates a new PasswordAuthenticationDialog object.
PasswordAuthenticationDialog(Dialog parent)
Creates a new PasswordAuthenticationDialog object.
PasswordAuthenticationDialog(Frame parent)
Creates a new PasswordAuthenticationDialog object.

Method Summary

String
getPassword()
String
getUsername()
void
setInstance(SshAuthenticationClient instance)
void
setUsername(String username)
boolean
showPrompt(SshAuthenticationClient inst)

Constructor Details

PasswordAuthenticationDialog

public PasswordAuthenticationDialog()
Creates a new PasswordAuthenticationDialog object.

PasswordAuthenticationDialog

public PasswordAuthenticationDialog(Dialog parent)
Creates a new PasswordAuthenticationDialog object.
Parameters:
parent -

PasswordAuthenticationDialog

public PasswordAuthenticationDialog(Frame parent)
Creates a new PasswordAuthenticationDialog object.
Parameters:
parent -

Method Details

getPassword

public String getPassword()
Returns:

getUsername

public String getUsername()
Returns:

setInstance

public void setInstance(SshAuthenticationClient instance)
            throws AuthenticationProtocolException
Parameters:
instance -

setUsername

public void setUsername(String username)
Parameters:
username -

showPrompt

public boolean showPrompt(SshAuthenticationClient inst)
            throws AuthenticationProtocolException
Specified by:
showPrompt in interface SshAuthenticationPrompt
Returns:

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