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

项目: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;
}
项目: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;
}
项目:compose-idm    文件:SecurityConfiguration.java   
@Bean
 public DigestAuthenticationEntryPoint digestEntryPoint ()
 {
   //DigestAuthenticationEntryPoint digestAuthenticationEntryPoint = new DigestAuthenticationEntryPoint();
DigestAuthenticationEntryPoint digestAuthenticationEntryPoint = new CustomDigestAuthenticationEntryPoint();
   digestAuthenticationEntryPoint.setKey(env.getProperty("digest.key"));
   digestAuthenticationEntryPoint.setRealmName(env.getProperty("digest.realm"));
   digestAuthenticationEntryPoint.setNonceValiditySeconds(3);
   return digestAuthenticationEntryPoint;
 }
项目:cims-server    文件:SecurityConfig.java   
@Bean
public DigestAuthenticationEntryPoint digestEntryPoint() {
    DigestAuthenticationEntryPoint entryPoint = new DigestAuthenticationEntryPoint();
    entryPoint.setRealmName("CIMS API");
    entryPoint.setKey("cims-dig-it");
    entryPoint.setNonceValiditySeconds(10);
    return entryPoint;
}
项目:cims-server    文件:SecurityConfig.java   
@Bean
public DigestAuthenticationFilter digestAuthFilter(DigestAuthenticationEntryPoint entryPoint,
                                                   UserDetailsService userDetailsService) {
    DigestAuthenticationFilter filter = new DigestAuthenticationFilter();
    filter.setUserDetailsService(userDetailsService);
    filter.setAuthenticationEntryPoint(entryPoint);
    return filter;
}