public interface IAuthenticator
| Modifier and Type | Method and Description |
|---|---|
IAccountInfo |
getAccountInfo()
Gets the current account info for this authenticator.
|
void |
init(IExecutors executors,
IHttpProvider httpProvider,
android.app.Activity activity,
ILogger logger)
Initializes the authenticator.
|
IAccountInfo |
login(java.lang.String emailAddressHint)
Starts an interactive login.
|
void |
login(java.lang.String emailAddressHint,
ICallback<IAccountInfo> loginCallback)
Starts an interactive login asynchronously.
|
IAccountInfo |
loginSilent()
Starts a silent login.
|
void |
loginSilent(ICallback<IAccountInfo> loginCallback)
Starts a silent login asynchronously.
|
void |
logout()
Log the current user out.
|
void |
logout(ICallback<java.lang.Void> logoutCallback)
Log the current user out.
|
IAccountInfo getAccountInfo()
void init(IExecutors executors, IHttpProvider httpProvider, android.app.Activity activity, ILogger logger)
executors - The executors to schedule foreground and background tasks.httpProvider - The http provider for sending requests.activity - The activity to create interactive UI on.logger - The logger for diagnostic information.void login(java.lang.String emailAddressHint,
ICallback<IAccountInfo> loginCallback)
emailAddressHint - The hint for the email address during the interactive login.loginCallback - The callback to be called when the login is complete.IAccountInfo login(java.lang.String emailAddressHint) throws ClientException
emailAddressHint - The hint for the email address during the interactive login.ClientException - An exception occurs if the login was unable to complete for any reason.void loginSilent(ICallback<IAccountInfo> loginCallback)
loginCallback - The callback to be called when the login is complete.IAccountInfo loginSilent() throws ClientException
ClientException - If the login was unable to complete for any reason.void logout(ICallback<java.lang.Void> logoutCallback)
logoutCallback - The callback to be called when the logout is complete.void logout()
throws ClientException
ClientException - Indicates if the logout was unable to complete for any reason.