예제 #1
0
 /// <summary>
 /// Creates a new instance of <see cref="PersistentTokenCache"/> with the specified options.
 /// </summary>
 /// <param name="options">Options controlling the storage of the <see cref="PersistentTokenCache"/>.</param>
 public PersistentTokenCache(PersistentTokenCacheOptions options = null)
 {
     _allowUnencryptedStorage = options?.AllowUnencryptedStorage ?? false;
     _name = options?.Name ?? Constants.DefaultMsalTokenCacheName;
     _cacheHelperWrapper = new MsalCacheHelperWrapper();
 }
예제 #2
0
 internal PersistentTokenCache(PersistentTokenCacheOptions options, MsalCacheHelperWrapper cacheHelperWrapper)
 {
     _allowUnencryptedStorage = options?.AllowUnencryptedStorage ?? false;
     _name = options?.Name ?? Constants.DefaultMsalTokenCacheName;
     _cacheHelperWrapper = cacheHelperWrapper;
 }
예제 #3
0
        /// <summary>
        /// Creates a new instance of <see cref="PersistentTokenCache"/> with the specified options.
        /// </summary>
        /// <param name="options">Options controlling the storage of the <see cref="PersistentTokenCache"/>.</param>
        public PersistentTokenCache(PersistentTokenCacheOptions options)
        {
            _allowUnencryptedStorage = options?.AllowUnencryptedStorage ?? false;

            _name = options?.Name;
        }