本文整理汇总了Java中org.springframework.security.ldap.userdetails.UserDetailsContextMapper类的典型用法代码示例。如果您正苦于以下问题:Java UserDetailsContextMapper类的具体用法?Java UserDetailsContextMapper怎么用?Java UserDetailsContextMapper使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
UserDetailsContextMapper类属于org.springframework.security.ldap.userdetails包,在下文中一共展示了UserDetailsContextMapper类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: authenticationProvider
import org.springframework.security.ldap.userdetails.UserDetailsContextMapper; //导入依赖的package包/类
@Bean
public LdapAuthenticationProvider authenticationProvider(BindAuthenticator ba,
LdapAuthoritiesPopulator lap,
UserDetailsContextMapper cm){
return new LdapAuthenticationProvider(ba, lap){{
setUserDetailsContextMapper(cm);
}};
}
示例2: userDetailsContextMapper
import org.springframework.security.ldap.userdetails.UserDetailsContextMapper; //导入依赖的package包/类
@Bean
public UserDetailsContextMapper userDetailsContextMapper(){
return new InetOrgPersonContextMapper();
}
示例3: userDetailsContextMapper
import org.springframework.security.ldap.userdetails.UserDetailsContextMapper; //导入依赖的package包/类
@Bean
public UserDetailsContextMapper userDetailsContextMapper() {
return new CustomUserDetailsContextMapper();
}
示例4: midPointAuthenticationProvider
import org.springframework.security.ldap.userdetails.UserDetailsContextMapper; //导入依赖的package包/类
@Bean
public MidPointLdapAuthenticationProvider midPointAuthenticationProvider(
@Qualifier("userDetailsService") UserDetailsContextMapper userDetailsContextMapper) {
MidPointLdapAuthenticationProvider provider = new MidPointLdapAuthenticationProvider(bindAuthenticator());
provider.setUserDetailsContextMapper(userDetailsContextMapper);
return provider;
}
示例5: userDetailsContextMapper
import org.springframework.security.ldap.userdetails.UserDetailsContextMapper; //导入依赖的package包/类
@Bean
public UserDetailsContextMapper userDetailsContextMapper() {
return new LdapUserDetailsMapper();
}
开发者ID:gravitee-io,项目名称:graviteeio-access-management,代码行数:5,代码来源:LdapAuthenticationProviderConfiguration.java
示例6: userServiceDetailMapper
import org.springframework.security.ldap.userdetails.UserDetailsContextMapper; //导入依赖的package包/类
public ActiveDirectoryAuthenticationProviderConfigurer<B> userServiceDetailMapper(UserDetailsContextMapper userDetailsContextMapper) {
this.userDetailsContextMapper = userDetailsContextMapper;
return this;
}
示例7: setUserDetailsContextMapper
import org.springframework.security.ldap.userdetails.UserDetailsContextMapper; //导入依赖的package包/类
public void setUserDetailsContextMapper(UserDetailsContextMapper userDetailsContextMapper) {
Assert.notNull(userDetailsContextMapper, "UserDetailsContextMapper must not be null");
this.userDetailsContextMapper = userDetailsContextMapper;
}
示例8: getUserDetailsContextMapper
import org.springframework.security.ldap.userdetails.UserDetailsContextMapper; //导入依赖的package包/类
protected UserDetailsContextMapper getUserDetailsContextMapper() {
return userDetailsContextMapper;
}