public interface Authenticator
Contains the various tasks defined by the
UserClient to be performed
AuthenticationView during the authentication process. The methods to be called
during the authentication process are as follows:
connected(User)- When a user has been returned successfully.
failed(String)- When the authentication process has failed.
aborted(String)- When the process has been aborted by the user.
finished()- When the control is to be handed back to the
finished() should be called at the end of the
and no more code execution should happen after the call is made because these action could interfere
with the user provided action in
|Modifier and Type||Method and Description|
Task to be performed when the authentication process is aborted by the user.
Task to be performed when a
Task to be performed when the authentication process has been unsuccessful.
Optional additional task to be performed after the authentication process has finished.
void connected(User user)
userhas been fetched and ready to use.
user- An authenticated user.
void failed(java.lang.String message)
message- Reason for failure
void aborted(java.lang.String reason)
reason- A String with the reason for cancellation.