DefaultSingleSignOnManager

Manage the Single Sign On Token, the token will be encrypted and store to SharedPreferences.

Constructors

Link copied to clipboard
private constructor(@NonNull context: Context, serverConfig: ServerConfig, ssoBroadcastModel: SSOBroadcastModel, sharedPreferences: SharedPreferences)

Properties

Link copied to clipboard
private val LOGOUT: Action
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
private val TAG: String

Functions

Link copied to clipboard
open fun clear()
Remove the stored Token and Cookies
Link copied to clipboard
open fun close(response: Response)
Close the response body stream.
Link copied to clipboard
open fun getBody(response: Response): String
Link copied to clipboard
Retrieve the Stored cookies
Link copied to clipboard
private open fun getLogoutUrl(): URL
Link copied to clipboard
open fun getToken(): SSOToken
Retrieve the Token
Link copied to clipboard
open fun handleError(response: Response, listener: FRListener<out Any>)
Handle Exception, provide feedback to registered FRListener
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