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
|
getServiceConfig
public OIDCAuthenticatorImpl(org.aerogear.mobile.core.configuration.ServiceConfiguration serviceConfiguration, AuthServiceConfiguration authServiceConfiguration, AuthStateManager authStateManager, AuthorizationServiceFactory authorizationServiceFactory, JwksManager jwksManager, org.aerogear.mobile.core.http.HttpServiceModule httpModule)
serviceConfiguration
- ServiceConfiguration
authServiceConfiguration
- AuthServiceConfiguration
authStateManager
- AuthStateManager
authorizationServiceFactory
- AuthorizationServiceFactory
jwksManager
- JwksManager
httpModule
- HttpServiceModule
Module used to make HTTP requests for
authenticator.public void authenticate(AuthenticateOptions authOptions, org.aerogear.mobile.core.Callback<UserPrincipal> callback)
authenticate
in class AbstractAuthenticator
authOptions
- 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)
AbstractAuthenticator
logout
in class AbstractAuthenticator
principal
- principal to be log outcallback
- the callback function to be invokedpublic void deleteTokens()