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

项目:Spring-Security-Third-Edition    文件:CasConfig.java   
@Bean
public AuthenticationUserDetailsService userDetailsService(){
    GrantedAuthorityFromAssertionAttributesUserDetailsService uds =
            new GrantedAuthorityFromAssertionAttributesUserDetailsService(
                    new String[]{"role"}
                    );
    return uds;
}
项目:Spring-Security-Third-Edition    文件:SecurityConfig.java   
@Bean
    public PreAuthenticatedAuthenticationProvider preAuthAuthenticationProvider(
//            final AuthenticationUserDetailsService<PreAuthenticatedAuthenticationToken> authenticationUserDetailsService)
            final AuthenticationUserDetailsService authenticationUserDetailsService)
    {
        return new PreAuthenticatedAuthenticationProvider(){{
            setPreAuthenticatedUserDetailsService(authenticationUserDetailsService);
        }};
    }
项目:Spring-Security-Third-Edition    文件:SecurityConfig.java   
@Bean
public PreAuthenticatedAuthenticationProvider preAuthAuthenticationProvider(final AuthenticationUserDetailsService authenticationUserDetailsService){
    return new PreAuthenticatedAuthenticationProvider(){{
        setPreAuthenticatedUserDetailsService(authenticationUserDetailsService);
    }};
}
项目:Spring-Security-Third-Edition    文件:SecurityConfig.java   
@Bean
public PreAuthenticatedAuthenticationProvider preAuthAuthenticationProvider(final AuthenticationUserDetailsService authenticationUserDetailsService){
    return new PreAuthenticatedAuthenticationProvider(){{
        setPreAuthenticatedUserDetailsService(authenticationUserDetailsService);
    }};
}
项目:Spring-Security-Third-Edition    文件:SecurityConfig.java   
@Bean
public PreAuthenticatedAuthenticationProvider preAuthAuthenticationProvider(final AuthenticationUserDetailsService authenticationUserDetailsService){
    return new PreAuthenticatedAuthenticationProvider(){{
        setPreAuthenticatedUserDetailsService(authenticationUserDetailsService);
    }};
}
项目:Spring-Security-Third-Edition    文件:SecurityConfig.java   
@Bean
public PreAuthenticatedAuthenticationProvider preAuthAuthenticationProvider(final AuthenticationUserDetailsService authenticationUserDetailsService){
    return new PreAuthenticatedAuthenticationProvider(){{
        setPreAuthenticatedUserDetailsService(authenticationUserDetailsService);
    }};
}
项目:shootmimi    文件:CasSecurityConfig.java   
/**
 * 用户自定义的AuthenticationUserDetailsService
 */
@Bean
public AuthenticationUserDetailsService<CasAssertionAuthenticationToken> customUserDetailsService() {
    return new CustomUserDetailsService();
}
项目:credhub    文件:X509AuthenticationProvider.java   
private AuthenticationUserDetailsService<PreAuthenticatedAuthenticationToken> x509v3ExtService() {
  return token -> new User(token.getName(), "", AuthorityUtils.createAuthorityList(ROLE_MTLS_USER));
}
项目:demo-spring-security-cas    文件:SecurityConfiguration.java   
@Bean
public AuthenticationUserDetailsService<CasAssertionAuthenticationToken> customUserDetailsService() {
    return new CustomUserDetailsService(adminList());
}
项目:owf-security    文件:CachingPreAuthenticatedAuthenticationProvider.java   
@Override
public void setPreAuthenticatedUserDetailsService(AuthenticationUserDetailsService aPreAuthenticatedUserDetailsService) {
    this.preAuthenticatedUserDetailsService = aPreAuthenticatedUserDetailsService;
    super.setPreAuthenticatedUserDetailsService(aPreAuthenticatedUserDetailsService);
}
项目:bandwidth-on-demand    文件:GuestSupportingUserDetailsService.java   
public GuestSupportingUserDetailsService(AuthenticationUserDetailsService<Authentication> nonGuestAuthenticationUserDetailsService) {
  this.nonGuestAuthenticationUserDetailsService = nonGuestAuthenticationUserDetailsService;
}
项目:spring-security-oauth2-client    文件:OAuth2AuthenticationProvider.java   
/**
 * 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;
}