/// <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(); }
/// <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(); }