Package org.forgerock.android.auth
Class Config
-
- All Implemented Interfaces:
public class ConfigProvide SDK Configuration, most components in the SDK has its default setting, this class allow developer to override the default configuration.
-
-
Field Summary
Fields Modifier and Type Field Description public Stringurlpublic KeyStoreManagerkeyStoreManager
-
Method Summary
Modifier and Type Method Description StringgetUrl()voidsetUrl(String url)KeyStoreManagergetKeyStoreManager()voidsetKeyStoreManager(KeyStoreManager keyStoreManager)synchronized voidinit(Context appContext)Load all the SDK configuration from the strings. synchronized voidinit(Context context, @Nullable() FROptions frOptions)Load all the SDK configuration from the FROptions static ConfiggetInstance()SessionManagergetSessionManager()Retrieve the Session Manager that manage the user session. static voidreset()voidsetSsoSharedPreferences(SharedPreferences ssoSharedPreferences)voidsetSharedPreferences(SharedPreferences sharedPreferences)-
-
Method Detail
-
getKeyStoreManager
KeyStoreManager getKeyStoreManager()
-
setKeyStoreManager
void setKeyStoreManager(KeyStoreManager keyStoreManager)
-
init
synchronized void init(Context appContext)
Load all the SDK configuration from the strings.xml
- Parameters:
appContext- The Application Context
-
init
synchronized void init(Context context, @Nullable() FROptions frOptions)
Load all the SDK configuration from the FROptions
- Parameters:
context- The Application ContextfrOptions- FrOptions is nullable it loads the config from strings.xml, if not use the passed value.
-
getInstance
static Config getInstance()
-
getSessionManager
SessionManager getSessionManager()
Retrieve the Session Manager that manage the user session.
- Returns:
The SessionManager
-
reset
static void reset()
-
setSsoSharedPreferences
void setSsoSharedPreferences(SharedPreferences ssoSharedPreferences)
-
setSharedPreferences
void setSharedPreferences(SharedPreferences sharedPreferences)
-
-
-
-