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