public class BroadleafActiveDirectoryUserDetailsMapper
extends org.springframework.security.ldap.userdetails.LdapUserDetailsMapper
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
additiveRoleNameSubstitutions |
protected Map<String,String[]> |
roleNameSubstitutions |
protected boolean |
useEmailAddressAsUsername |
| Constructor and Description |
|---|
BroadleafActiveDirectoryUserDetailsMapper() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.core.userdetails.UserDetails |
mapUserFromContext(org.springframework.ldap.core.DirContextOperations ctx,
String username,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) |
void |
setAdditiveRoleNameSubstitutions(boolean additiveRoleNameSubstitutions)
This should be used in conjunction with the roleNameSubstitutions property.
|
void |
setRoleNameSubstitutions(Map<String,String[]> roleNameSubstitutions)
This allows you to declaratively set a map containing values that will substitute role names from LDAP to Broadleaf roles names in cases that they might be different.
|
void |
setUseEmailAddressAsUsername(boolean value)
The LDAP server may contain a user name other than an email address.
|
protected boolean useEmailAddressAsUsername
protected boolean additiveRoleNameSubstitutions
public BroadleafActiveDirectoryUserDetailsMapper()
public org.springframework.security.core.userdetails.UserDetails mapUserFromContext(org.springframework.ldap.core.DirContextOperations ctx,
String username,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
mapUserFromContext in interface org.springframework.security.ldap.userdetails.UserDetailsContextMappermapUserFromContext in class org.springframework.security.ldap.userdetails.LdapUserDetailsMapperpublic void setUseEmailAddressAsUsername(boolean value)
value - public void setRoleNameSubstitutions(Map<String,String[]> roleNameSubstitutions)
roleNameSubstitutions - public void setAdditiveRoleNameSubstitutions(boolean additiveRoleNameSubstitutions)
additiveRoleNameSubstitutions - Copyright © 2014. All rights reserved.