public abstract class AbstractAuthenticator
extends java.lang.Object
Constructor and Description |
---|
AbstractAuthenticator(org.aerogear.mobile.core.configuration.ServiceConfiguration serviceConfig) |
Modifier and Type | Method and Description |
---|---|
abstract void |
authenticate(AuthenticateOptions authOptions,
org.aerogear.mobile.core.Callback<UserPrincipal> callback)
This method must be overridden with the custom authentication for the given credential.
|
protected org.aerogear.mobile.core.configuration.ServiceConfiguration |
getServiceConfig()
Returns the authentication singleThreadService configuration
|
abstract void |
logout(UserPrincipal principal,
org.aerogear.mobile.core.Callback<UserPrincipal> callback)
Logout the given principal
|
public AbstractAuthenticator(@NonNull org.aerogear.mobile.core.configuration.ServiceConfiguration serviceConfig)
public abstract void authenticate(AuthenticateOptions authOptions, org.aerogear.mobile.core.Callback<UserPrincipal> callback)
authOptions
- the options for the authenticate actioncallback
- the callback function to be invokedpublic abstract void logout(UserPrincipal principal, org.aerogear.mobile.core.Callback<UserPrincipal> callback)
principal
- principal to be log outcallback
- the callback function to be invokedprotected org.aerogear.mobile.core.configuration.ServiceConfiguration getServiceConfig()