Beispiel #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();
 }
Beispiel #2
0
 internal PersistentTokenCache(PersistentTokenCacheOptions options, MsalCacheHelperWrapper cacheHelperWrapper)
 {
     _allowUnencryptedStorage = options?.AllowUnencryptedStorage ?? false;
     _name = options?.Name ?? Constants.DefaultMsalTokenCacheName;
     _cacheHelperWrapper = cacheHelperWrapper;
 }
Beispiel #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;
        }