Package org.forgerock.android.auth
Class FRUser.Browser
- java.lang.Object
-
- org.forgerock.android.auth.FRUser.Browser
-
- Enclosing class:
- FRUser
public static class FRUser.Browser extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Browser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppAuthConfigurerappAuthConfigurer()voidlogin(androidx.fragment.app.FragmentActivity activity, FRListener<FRUser> listener)voidlogin(androidx.fragment.app.Fragment fragment, FRListener<FRUser> listener)
-
-
-
Method Detail
-
appAuthConfigurer
public AppAuthConfigurer appAuthConfigurer()
-
login
public void login(androidx.fragment.app.Fragment fragment, FRListener<FRUser> listener)- Parameters:
fragment- The current Fragmentlistener- Listener to listen login event.FRListener.onSuccess(Object)on success login,FRUseris returned. throwsAlreadyAuthenticatedExceptionuser session already exists. throwsInvalidRedirectUriExceptionInvalid Redirect URI. throwsBrowserAuthenticationExceptionwhen there is any error during centralize authentication. throwswhen server returns {@link java.net.HttpURLConnection#HTTP_UNAUTHORIZED} throws {@link org.forgerock.android.auth.exception.ApiException} When server return errors. throws {@link org.json.JSONException} when failed to parse server response as JSON String. throws {@link IOException} When there is any network error. throws {@link java.net.MalformedURLException} When failed to parse the URL for API request.
-
login
public void login(androidx.fragment.app.FragmentActivity activity, FRListener<FRUser> listener)- Parameters:
activity- The current FragmentActivitylistener- Listener to listen login event.FRListener.onSuccess(Object)on success login,FRUseris returned. throwsAlreadyAuthenticatedExceptionuser session already exists. throwsInvalidRedirectUriExceptionInvalid Redirect URI. throwsBrowserAuthenticationExceptionwhen there is any error during centralize authentication. throwswhen server returns {@link java.net.HttpURLConnection#HTTP_UNAUTHORIZED} throws {@link org.forgerock.android.auth.exception.ApiException} When server return errors. throws {@link org.json.JSONException} when failed to parse server response as JSON String. throws {@link IOException} When there is any network error. throws {@link java.net.MalformedURLException} When failed to parse the URL for API request.
-
-