|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for an SSH Authentication
Method Summary | |
void |
authenticate(TransportProtocol transport,
java.lang.String serviceToStart)
The main authentication method; an implementation should authenticate by using the messages detailed in the method specification. |
java.lang.String |
getMethodName()
Gets the authentication method name. |
void |
setUsername(java.lang.String username)
Sets the username for the authentication; this is called by the framework to provide the authentication method with the username from the connection properties. |
boolean |
showAuthenticationDialog(java.awt.Frame parent)
An implementation should display a modal dialog so that the user can enter method specific information; this is only called on GUI implementations. |
Method Detail |
public void authenticate(TransportProtocol transport, java.lang.String serviceToStart) throws TransportProtocolException, AuthenticationProtocolException
The main authentication method; an implementation should authenticate by using the messages detailed in the method specification. The authentication protocol handles the success or failure.
transport
- The transport protocol to
send throughserviceToStart
- The Service to start after
authentication
AuthenticationProtocolException
TransportProtocolException
- Description of the Exceptionpublic boolean showAuthenticationDialog(java.awt.Frame parent)
An implementation should display a modal dialog so that the user can enter method specific information; this is only called on GUI implementations.
parent
- The parent frame
public java.lang.String getMethodName()
Gets the authentication method name.
public void setUsername(java.lang.String username)
Sets the username for the authentication; this is called by the framework to provide the authentication method with the username from the connection properties. It is possible for the user to specify a different username so an implementation should use this to default only.
username
- The user's name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |