/// <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();
        }
Ejemplo n.º 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();
        }