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,
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,
Callback<UserPrincipal> callback)
Logout the given principal
|
public AbstractAuthenticator(@NonNull
org.aerogear.mobile.core.configuration.ServiceConfiguration serviceConfig)
public abstract void authenticate(AuthenticateOptions authOptions, Callback<UserPrincipal> callback)
authOptions - the options for the authenticate actioncallback - the callback function to be invokedpublic abstract void logout(UserPrincipal principal, Callback<UserPrincipal> callback)
principal - principal to be log outcallback - the callback function to be invokedprotected org.aerogear.mobile.core.configuration.ServiceConfiguration getServiceConfig()