Class Config


  • public class Config
    extends java.lang.Object
    Provide SDK Configuration, most components in the SDK has its default setting, this class allow developer to override the default configuration.
    • Method Detail

      • setUrl

        public void setUrl​(java.lang.String url)
      • getUrl

        public java.lang.String getUrl()
      • setSsoSharedPreferences

        public void setSsoSharedPreferences​(android.content.SharedPreferences ssoSharedPreferences)
      • setSharedPreferences

        public void setSharedPreferences​(android.content.SharedPreferences sharedPreferences)
      • init

        public void init​(android.content.Context appContext)
        Load all the SDK configuration from the strings.xml
        Parameters:
        appContext - The Application Context
      • init

        public void init​(android.content.Context context,
                         @Nullable
                         org.forgerock.android.auth.FROptions frOptions)
        Load all the SDK configuration from the FROptions
        Parameters:
        context - The Application Context
        frOptions - FrOptions is nullable it loads the config from strings.xml, if not use the passed value.
      • getInstance

        public static Config getInstance()
      • getSessionManager

        public SessionManager getSessionManager()
        Retrieve the Session Manager that manage the user session.
        Returns:
        The SessionManager
      • setKeyStoreManager

        public void setKeyStoreManager​(org.forgerock.android.auth.KeyStoreManager keyStoreManager)
      • getKeyStoreManager

        public org.forgerock.android.auth.KeyStoreManager getKeyStoreManager()
      • reset

        public static void reset()
      • getContext

        public android.content.Context getContext()
      • getClientId

        public java.lang.String getClientId()
      • getRedirectUri

        public java.lang.String getRedirectUri()
      • getScope

        public java.lang.String getScope()
      • getOauthCacheMillis

        public java.lang.Long getOauthCacheMillis()
      • getOauthThreshold

        public java.lang.Long getOauthThreshold()
      • getCookieCacheMillis

        public java.lang.Long getCookieCacheMillis()
      • getRealm

        public java.lang.String getRealm()
      • getTimeout

        public int getTimeout()
      • getPins

        public java.util.List<java.lang.String> getPins()
      • getBuildSteps

        public java.util.List<org.forgerock.android.auth.BuildStep<okhttp3.OkHttpClient.Builder>> getBuildSteps()
      • getCookieName

        public java.lang.String getCookieName()
      • getAuthServiceName

        public java.lang.String getAuthServiceName()
      • getRegistrationServiceName

        public java.lang.String getRegistrationServiceName()
      • getSsoSharedPreferences

        public android.content.SharedPreferences getSsoSharedPreferences()
      • getSharedPreferences

        public android.content.SharedPreferences getSharedPreferences()
      • setBuildSteps

        public void setBuildSteps​(java.util.List<org.forgerock.android.auth.BuildStep<okhttp3.OkHttpClient.Builder>> buildSteps)