Package org.forgerock.android.auth
Class FRSession
-
- All Implemented Interfaces:
public class FRSessionObject which represent the User Session
-
-
Method Summary
Modifier and Type Method Description voidlogout()Logout the user static FRSessiongetCurrentSession()Retrieve the existing FRSession instance, If user session does not exist return null, otherwise return the existing User session, this cannot guarantee the existing user session is valid. SSOTokengetSessionToken()Retrieve the stored Session Token. Collection<String>getSessionCookies()voidauthenticate(Context context, PolicyAdvice advice, NodeListener<FRSession> listener)Trigger the Authentication Tree flow process with the PolicyAdvice static voidauthenticate(Context context, String serviceName, NodeListener<FRSession> listener)Trigger the Authentication Tree flow process with the provided tree name static voidauthenticate(Context context, Uri resumeURI, NodeListener<FRSession> listener)Trigger the Authentication Tree flow process with the provided resume URI -
-
Method Detail
-
logout
void logout()
Logout the user
-
getCurrentSession
static FRSession getCurrentSession()
Retrieve the existing FRSession instance,
If user session does not exist return null, otherwise return the existing User session, this cannot guarantee the existing user session is valid.
- Returns:
The existing FRSession instance, or null if there is no user session.
-
getSessionToken
SSOToken getSessionToken()
Retrieve the stored Session Token.
- Returns:
The Session Token
-
getSessionCookies
Collection<String> getSessionCookies()
-
authenticate
void authenticate(Context context, PolicyAdvice advice, NodeListener<FRSession> listener)
Trigger the Authentication Tree flow process with the PolicyAdvice
- Parameters:
context- The Application Contextadvice- Policy Advice for Step up authentication.listener- Listener to listen for authenticate event.
-
authenticate
static void authenticate(Context context, String serviceName, NodeListener<FRSession> listener)
Trigger the Authentication Tree flow process with the provided tree name
- Parameters:
context- The Application ContextserviceName- Authentication Tree namelistener- Listener to listen for authenticate event.
-
authenticate
static void authenticate(Context context, Uri resumeURI, NodeListener<FRSession> listener)
Trigger the Authentication Tree flow process with the provided resume URI
- Parameters:
context- The Application ContextresumeURI- Resume URIlistener- Listener to listen for authenticate event.
-
-
-
-