forgerock-auth
4.4.0
forgerock-auth
/
org.forgerock.android.auth
/
SharedPreferencesSignOnManager
Shared
Preferences
Sign
On
Manager
open
class
SharedPreferencesSignOnManager
:
SingleSignOnManager
Manage SSO Token with
SharedPreferences
as the storage.
Members
Constructors
Shared
Preferences
Sign
On
Manager
Link copied to clipboard
constructor
(
@
NonNull
context
:
Context
,
sharedPreferences
:
SharedPreferences
)
Properties
COOKIES
Link copied to clipboard
private
val
COOKIES
:
String
=
"org.forgerock.v1.COOKIES"
ORG_FORGEROCK_V_1_KEYS
Link copied to clipboard
private
val
ORG_FORGEROCK_V_1_KEYS
:
String
=
"org.forgerock.v1.KEYS"
ORG_FORGEROCK_V_1_SSO_TOKENS
Link copied to clipboard
private
val
ORG_FORGEROCK_V_1_SSO_TOKENS
:
String
=
"org.forgerock.v1.SSO_TOKENS"
shared
Preferences
Link copied to clipboard
private
open
var
sharedPreferences
:
SharedPreferences
SSO_TOKEN
Link copied to clipboard
private
val
SSO_TOKEN
:
String
=
"org.forgerock.v1.SSO_TOKEN"
Functions
clear
Link copied to clipboard
open
fun
clear
(
)
Remove the stored
Token
and Cookies
get
Cookies
Link copied to clipboard
open
fun
getCookies
(
)
:
Collection
<
String
>
Retrieve the Stored cookies
get
Token
Link copied to clipboard
open
fun
getToken
(
)
:
SSOToken
Retrieve the
Token
has
Token
Link copied to clipboard
open
fun
hasToken
(
)
:
Boolean
Check if token exists in the storage.
is
Broadcast
Enabled
Link copied to clipboard
open
fun
isBroadcastEnabled
(
)
:
Boolean
Check if broadcast to other Apps in the SSO Group is enabled.
persist
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
revoke
Link copied to clipboard
open
fun
revoke
(
listener
:
FRListener
<
Void
>
)
Revoke the SSO Session