SharedPreferencesSignOnManager

Manage SSO Token with SharedPreferences as the storage.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context, sharedPreferences: SharedPreferences)

Properties

Link copied to clipboard
private val COOKIES: String = "org.forgerock.v1.COOKIES"
Link copied to clipboard
private val ORG_FORGEROCK_V_1_KEYS: String = "org.forgerock.v1.KEYS"
Link copied to clipboard
private val ORG_FORGEROCK_V_1_SSO_TOKENS: String = "org.forgerock.v1.SSO_TOKENS"
Link copied to clipboard
Link copied to clipboard
private val SSO_TOKEN: String = "org.forgerock.v1.SSO_TOKEN"

Functions

Link copied to clipboard
open fun clear()
Remove the stored Token and Cookies
Link copied to clipboard
Retrieve the Stored cookies
Link copied to clipboard
open fun getToken(): SSOToken
Retrieve the Token
Link copied to clipboard
open fun hasToken(): Boolean
Check if token exists in the storage.
Link copied to clipboard
Check if broadcast to other Apps in the SSO Group is enabled.
Link copied to clipboard
open fun persist(cookies: Collection<String>)
Persist the Cookies to storage
open fun persist(token: SSOToken)
Persist the Token to storage
Link copied to clipboard
open fun revoke(listener: FRListener<Void>)
Revoke the SSO Session