/// <summary>
        ///     Initializes a new instance of the <see cref="HashAuthenticationModule" /> class.
        /// </summary>
        /// <param name="fetcher">The fetcher.</param>
        public HashAuthenticationModule(IUserFetcher fetcher)
        {
            if (fetcher == null) throw new ArgumentNullException("fetcher");

            _fetcher = fetcher;
            PrincipalFactory = new GenericPrincipalFactory(fetcher);
            _authenticationMessageFactory = new AuthenticationMessageFactory();
        }
示例#2
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="HashAuthenticationModule" /> class.
        /// </summary>
        /// <param name="fetcher">The fetcher.</param>
        public HashAuthenticationModule(IUserFetcher fetcher)
        {
            if (fetcher == null)
            {
                throw new ArgumentNullException("fetcher");
            }

            _fetcher         = fetcher;
            PrincipalFactory = new GenericPrincipalFactory(fetcher);
            _authenticationMessageFactory = new AuthenticationMessageFactory();
        }