|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sshtools.j2ssh.authentication.PasswordAuthentication
Implements the Password Authentication for the SSH Authenticaiton Protocol
| Constructor Summary | |
PasswordAuthentication()
Constructs the PasswordAuthentication object |
|
| Method Summary | |
void |
authenticate(TransportProtocol transport,
java.lang.String serviceToStart)
Sends the password authentication over the transport protocol. |
java.lang.String |
getMethodName()
Returns the SSH User Authentication method name. |
void |
setPassword(java.lang.String password)
Sets the password for the authentication. |
void |
setUsername(java.lang.String username)
Sets the username for the authentication. |
boolean |
showAuthenticationDialog(java.awt.Frame parent)
Displays a modal login prompt. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PasswordAuthentication()
| Method Detail |
public boolean showAuthenticationDialog(java.awt.Frame parent)
Displays a modal login prompt.
showAuthenticationDialog in interface SshAuthenticationparent - The parent frame
public void setUsername(java.lang.String username)
Sets the username for the authentication.
setUsername in interface SshAuthenticationusername - The usernamepublic void setPassword(java.lang.String password)
Sets the password for the authentication.
password - The user's passwordpublic java.lang.String getMethodName()
Returns the SSH User Authentication method name.
getMethodName in interface SshAuthentication
public void authenticate(TransportProtocol transport,
java.lang.String serviceToStart)
throws TransportProtocolException,
AuthenticationProtocolException
Sends the password authentication over the transport protocol.
authenticate in interface SshAuthenticationtransport - The connected transport
protocolserviceToStart - The service to start after an
authentication success
TransportProtocolException
AuthenticationProtocolException - Description of the Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||