Search in sources :

Example 6 with IStorageHelper

use of com.microsoft.identity.common.adal.internal.cache.IStorageHelper in project microsoft-authentication-library-common-for-android by AzureAD.

the class BrokerOAuth2TokenCache method initializeFociCache.

private static MicrosoftFamilyOAuth2TokenCache initializeFociCache(@NonNull final Context context) {
    final String methodName = ":initializeFociCache";
    Logger.verbose(TAG + methodName, "Initializing foci cache");
    final IStorageHelper storageHelper = new StorageHelper(context);
    final ISharedPreferencesFileManager sharedPreferencesFileManager = SharedPreferencesFileManager.getSharedPreferences(context, BROKER_FOCI_ACCOUNT_CREDENTIAL_SHARED_PREFERENCES, storageHelper);
    return getTokenCache(context, sharedPreferencesFileManager, true);
}
Also used : IStorageHelper(com.microsoft.identity.common.adal.internal.cache.IStorageHelper) StorageHelper(com.microsoft.identity.common.adal.internal.cache.StorageHelper) IStorageHelper(com.microsoft.identity.common.adal.internal.cache.IStorageHelper)

Aggregations

IStorageHelper (com.microsoft.identity.common.adal.internal.cache.IStorageHelper)6 StorageHelper (com.microsoft.identity.common.adal.internal.cache.StorageHelper)4 Field (java.lang.reflect.Field)3 Test (org.junit.Test)3