com.ssh.sft
Interface Authenticator
- public interface Authenticator
The Dialog during Authentication process.
In general, for being able to deal with the Authentication within
a custom made application, it is requiered to to create an object
that implements the interface Authenticator.
The function :
String authenticate(String request) throws AuthenticationException;
Will have to be implemented, and it is the one that will be called
when Broker will request all user interaction.
It will receive a String "Request" in XML, and the function will have to return
a String "Reply" in XML.
In Windows platforms, if no authenticator is passed to the Object,
broker GUI wll perform the Authentication dialog.
authenticate
public String authenticate(String request)
throws AuthenticationException
- Respond to an authentication query.
- Parameters:
request - the authentication query in XML
- Returns:
- a response to the query, e.g. a password or pass phrase
- Throws:
AuthenticationException - if a response cannot be given