Java 类org.springframework.security.web.authentication.www.DigestAuthenticationFilter 实例源码

项目:gauravbytes    文件:App.java   
@Bean
DigestAuthenticationFilter digestFilter(DigestAuthenticationEntryPoint digestAuthenticationEntryPoint, UserCache digestUserCache, UserDetailsService userDetailsService) {
    DigestAuthenticationFilter filter = new DigestAuthenticationFilter();
    filter.setAuthenticationEntryPoint(digestAuthenticationEntryPoint);
    filter.setUserDetailsService(userDetailsService);
    filter.setUserCache(digestUserCache);
    return filter;
}
项目:Robocode    文件:SecurityConfig.java   
@Override
protected void configure(HttpSecurity http) throws Exception {
    http.antMatcher("/**")
            .authorizeRequests().antMatchers("/", "/login**", "/webjars**").permitAll().anyRequest().authenticated().and()
            .exceptionHandling()/*.authenticationEntryPoint(new LoginUrlAuthenticationEntryPoint("/login"))*/.and()
            .logout().logoutRequestMatcher(new AntPathRequestMatcher("/logout")).logoutSuccessUrl("/").permitAll().and()
            .csrf().csrfTokenRepository(CookieCsrfTokenRepository.withHttpOnlyFalse()).and()
            .addFilterBefore(this.ssoFilter(), DigestAuthenticationFilter.class)
            .headers().httpStrictTransportSecurity().disable().and()
            .requestCache().requestCache(new NullRequestCache()).and()
    ;
}
项目:gauravbytes    文件:App.java   
@Bean
DigestAuthenticationFilter digestFilter(DigestAuthenticationEntryPoint digestAuthenticationEntryPoint, UserCache digestUserCache, UserDetailsService userDetailsService) {
    DigestAuthenticationFilter filter = new DigestAuthenticationFilter();
    filter.setAuthenticationEntryPoint(digestAuthenticationEntryPoint);
    filter.setUserDetailsService(userDetailsService);
    filter.setUserCache(digestUserCache);
    return filter;
}
项目:cims-server    文件:SecurityConfig.java   
@Bean
public DigestAuthenticationFilter digestAuthFilter(DigestAuthenticationEntryPoint entryPoint,
                                                   UserDetailsService userDetailsService) {
    DigestAuthenticationFilter filter = new DigestAuthenticationFilter();
    filter.setUserDetailsService(userDetailsService);
    filter.setAuthenticationEntryPoint(entryPoint);
    return filter;
}