public class OIDCAuthenticatorImpl extends AbstractAuthenticator
| Constructor and Description |
|---|
OIDCAuthenticatorImpl(org.aerogear.mobile.core.configuration.ServiceConfiguration serviceConfiguration,
AuthServiceConfiguration authServiceConfiguration,
AuthStateManager authStateManager,
AuthorizationServiceFactory authorizationServiceFactory,
JwksManager jwksManager,
org.aerogear.mobile.core.http.HttpServiceModule httpModule)
Creates a new OIDCAuthenticatorImpl object
|
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(AuthenticateOptions authOptions,
org.aerogear.mobile.core.Callback<UserPrincipal> callback)
Builds a new OIDCUserPrincipalImpl object after the user's credential has been authenticated
|
void |
deleteTokens()
Delete the the current tokens/authentication state.
|
void |
handleAuthResult(android.content.Intent intent) |
void |
logout(UserPrincipal principal,
org.aerogear.mobile.core.Callback<UserPrincipal> callback)
Logout the given principal
|
getServiceConfigpublic OIDCAuthenticatorImpl(org.aerogear.mobile.core.configuration.ServiceConfiguration serviceConfiguration,
AuthServiceConfiguration authServiceConfiguration,
AuthStateManager authStateManager,
AuthorizationServiceFactory authorizationServiceFactory,
JwksManager jwksManager,
org.aerogear.mobile.core.http.HttpServiceModule httpModule)
serviceConfiguration - ServiceConfigurationauthServiceConfiguration - AuthServiceConfigurationauthStateManager - AuthStateManagerauthorizationServiceFactory - AuthorizationServiceFactoryjwksManager - JwksManagerhttpModule - HttpServiceModule Module used to make HTTP requests for
authenticator.public void authenticate(AuthenticateOptions authOptions, org.aerogear.mobile.core.Callback<UserPrincipal> callback)
authenticate in class AbstractAuthenticatorauthOptions - the OIDC authentication optionscallback - the callback will be invoked with a new OIDCUserPrincipalImpl object with the
user's identity that was decoded from the user's credentialpublic void handleAuthResult(android.content.Intent intent)
public void logout(UserPrincipal principal, org.aerogear.mobile.core.Callback<UserPrincipal> callback)
AbstractAuthenticatorlogout in class AbstractAuthenticatorprincipal - principal to be log outcallback - the callback function to be invokedpublic void deleteTokens()