Package org.forgerock.android.auth
Interface SingleSignOnManager
-
public interface SingleSignOnManagerManage SSO related attributes
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Remove the storedTokenand Cookiesjava.util.Collection<java.lang.String>getCookies()Retrieve the Stored cookiesSSOTokengetToken()Retrieve theTokenbooleanhasToken()Check if token exists in the storage.voidpersist(java.util.Collection<java.lang.String> cookies)Persist the Cookies to storagevoidpersist(SSOToken token)Persist theTokento storagevoidrevoke(FRListener<java.lang.Void> listener)Revoke the SSO Session
-
-
-
Method Detail
-
persist
void persist(SSOToken token)
Persist theTokento storage- Parameters:
token- The SSO Token
-
persist
void persist(java.util.Collection<java.lang.String> cookies)
Persist the Cookies to storage- Parameters:
cookies- The cookies `Set-Cookie` HTTP header value
-
clear
void clear()
Remove the storedTokenand Cookies
-
getToken
SSOToken getToken()
Retrieve theToken- Returns:
- The SSO Token
-
getCookies
java.util.Collection<java.lang.String> getCookies()
Retrieve the Stored cookies- Returns:
- The Cookies
-
hasToken
boolean hasToken()
Check if token exists in the storage.- Returns:
- True if token exists, otherwise false
-
revoke
void revoke(FRListener<java.lang.Void> listener)
Revoke the SSO Session- Parameters:
listener- Listener to listen for token revocation event.
-
-