org.springframework.security.ldap.userdetails.UserDetailsContextMapper Java Examples

The following examples show how to use org.springframework.security.ldap.userdetails.UserDetailsContextMapper. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SecurityConfig.java    From Spring-Security-Third-Edition with MIT License 5 votes vote down vote up
@Bean
public LdapAuthenticationProvider authenticationProvider(BindAuthenticator ba,
                                                         LdapAuthoritiesPopulator lap,
                                                         UserDetailsContextMapper cm){
    return new LdapAuthenticationProvider(ba, lap){{
        setUserDetailsContextMapper(cm);
    }};
}
 
Example #2
Source File: SecurityConfig.java    From Spring-Security-Third-Edition with MIT License 5 votes vote down vote up
@Bean
public LdapAuthenticationProvider authenticationProvider(BindAuthenticator ba,
                                                         LdapAuthoritiesPopulator lap,
                                                         UserDetailsContextMapper cm){
    return new LdapAuthenticationProvider(ba, lap){{
        setUserDetailsContextMapper(cm);
    }};
}
 
Example #3
Source File: SecurityConfig.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
@Bean
public UserDetailsContextMapper userDetailsContextMapper(){
    return new InetOrgPersonContextMapper();
}
 
Example #4
Source File: SecurityConfig.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
@Bean
public UserDetailsContextMapper userDetailsContextMapper(){
    return new InetOrgPersonContextMapper();
}
 
Example #5
Source File: SecurityConfig.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
@Bean
public UserDetailsContextMapper userDetailsContextMapper(){
    return new InetOrgPersonContextMapper();
}
 
Example #6
Source File: SecurityConfig.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
@Bean
public UserDetailsContextMapper userDetailsContextMapper(){
    return new InetOrgPersonContextMapper();
}
 
Example #7
Source File: ActiveDirectoryAuthenticationProviderConfigurer.java    From mojito with Apache License 2.0 4 votes vote down vote up
public ActiveDirectoryAuthenticationProviderConfigurer<B> userServiceDetailMapper(UserDetailsContextMapper userDetailsContextMapper) {
    this.userDetailsContextMapper = userDetailsContextMapper;
    return this;
}