java类org.springframework.security.core.userdetails.AuthenticationUserDetailsService的实例源码

CasConfig.java 文件源码 项目:Spring-Security-Third-Edition 阅读 21 收藏 0 点赞 0 评论 0
@Bean
public AuthenticationUserDetailsService userDetailsService(){
    GrantedAuthorityFromAssertionAttributesUserDetailsService uds =
            new GrantedAuthorityFromAssertionAttributesUserDetailsService(
                    new String[]{"role"}
                    );
    return uds;
}
SecurityConfig.java 文件源码 项目:Spring-Security-Third-Edition 阅读 22 收藏 0 点赞 0 评论 0
@Bean
    public PreAuthenticatedAuthenticationProvider preAuthAuthenticationProvider(
//            final AuthenticationUserDetailsService<PreAuthenticatedAuthenticationToken> authenticationUserDetailsService)
            final AuthenticationUserDetailsService authenticationUserDetailsService)
    {
        return new PreAuthenticatedAuthenticationProvider(){{
            setPreAuthenticatedUserDetailsService(authenticationUserDetailsService);
        }};
    }
SecurityConfig.java 文件源码 项目:Spring-Security-Third-Edition 阅读 20 收藏 0 点赞 0 评论 0
@Bean
public PreAuthenticatedAuthenticationProvider preAuthAuthenticationProvider(final AuthenticationUserDetailsService authenticationUserDetailsService){
    return new PreAuthenticatedAuthenticationProvider(){{
        setPreAuthenticatedUserDetailsService(authenticationUserDetailsService);
    }};
}
SecurityConfig.java 文件源码 项目:Spring-Security-Third-Edition 阅读 20 收藏 0 点赞 0 评论 0
@Bean
public PreAuthenticatedAuthenticationProvider preAuthAuthenticationProvider(final AuthenticationUserDetailsService authenticationUserDetailsService){
    return new PreAuthenticatedAuthenticationProvider(){{
        setPreAuthenticatedUserDetailsService(authenticationUserDetailsService);
    }};
}
SecurityConfig.java 文件源码 项目:Spring-Security-Third-Edition 阅读 19 收藏 0 点赞 0 评论 0
@Bean
public PreAuthenticatedAuthenticationProvider preAuthAuthenticationProvider(final AuthenticationUserDetailsService authenticationUserDetailsService){
    return new PreAuthenticatedAuthenticationProvider(){{
        setPreAuthenticatedUserDetailsService(authenticationUserDetailsService);
    }};
}
SecurityConfig.java 文件源码 项目:Spring-Security-Third-Edition 阅读 27 收藏 0 点赞 0 评论 0
@Bean
public PreAuthenticatedAuthenticationProvider preAuthAuthenticationProvider(final AuthenticationUserDetailsService authenticationUserDetailsService){
    return new PreAuthenticatedAuthenticationProvider(){{
        setPreAuthenticatedUserDetailsService(authenticationUserDetailsService);
    }};
}
CasSecurityConfig.java 文件源码 项目:shootmimi 阅读 18 收藏 0 点赞 0 评论 0
/**
 * 用户自定义的AuthenticationUserDetailsService
 */
@Bean
public AuthenticationUserDetailsService<CasAssertionAuthenticationToken> customUserDetailsService() {
    return new CustomUserDetailsService();
}
X509AuthenticationProvider.java 文件源码 项目:credhub 阅读 16 收藏 0 点赞 0 评论 0
private AuthenticationUserDetailsService<PreAuthenticatedAuthenticationToken> x509v3ExtService() {
  return token -> new User(token.getName(), "", AuthorityUtils.createAuthorityList(ROLE_MTLS_USER));
}
SecurityConfiguration.java 文件源码 项目:demo-spring-security-cas 阅读 24 收藏 0 点赞 0 评论 0
@Bean
public AuthenticationUserDetailsService<CasAssertionAuthenticationToken> customUserDetailsService() {
    return new CustomUserDetailsService(adminList());
}
CachingPreAuthenticatedAuthenticationProvider.java 文件源码 项目:owf-security 阅读 20 收藏 0 点赞 0 评论 0
@Override
public void setPreAuthenticatedUserDetailsService(AuthenticationUserDetailsService aPreAuthenticatedUserDetailsService) {
    this.preAuthenticatedUserDetailsService = aPreAuthenticatedUserDetailsService;
    super.setPreAuthenticatedUserDetailsService(aPreAuthenticatedUserDetailsService);
}
GuestSupportingUserDetailsService.java 文件源码 项目:bandwidth-on-demand 阅读 19 收藏 0 点赞 0 评论 0
public GuestSupportingUserDetailsService(AuthenticationUserDetailsService<Authentication> nonGuestAuthenticationUserDetailsService) {
  this.nonGuestAuthenticationUserDetailsService = nonGuestAuthenticationUserDetailsService;
}
OAuth2AuthenticationProvider.java 文件源码 项目:spring-security-oauth2-client 阅读 33 收藏 0 点赞 0 评论 0
/**
 * Set the AuthenticatedUserDetailsService to be used to load the {@code UserDetails} for the authenticated user.
 *
 * @param uds The {@link AuthenticationUserDetailsService} to use.
 */
public void setAuthenticatedUserDetailsService(AuthenticationUserDetailsService<OAuth2AuthenticationToken> uds) {
    this.authenticatedUserDetailsService = uds;
}


问题


面经


文章

微信
公众号

扫码关注公众号