Package io.jmix.ldap.userdetails
Class JmixLdapAuthoritiesPopulator
java.lang.Object
org.springframework.security.ldap.userdetails.DefaultLdapAuthoritiesPopulator
io.jmix.ldap.userdetails.JmixLdapAuthoritiesPopulator
- All Implemented Interfaces:
org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator
public class JmixLdapAuthoritiesPopulator
extends org.springframework.security.ldap.userdetails.DefaultLdapAuthoritiesPopulator
Extension of the default strategy for obtaining user role information from the directory. In case there is an implementation
of
LdapUserAdditionalRoleProvider
interface it delegates fetching extra user roles to this implementation.- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJmixLdapAuthoritiesPopulator
(org.springframework.ldap.core.ContextSource contextSource, String groupSearchBase) -
Method Summary
Modifier and TypeMethodDescriptionprotected Set<org.springframework.security.core.GrantedAuthority>
getAdditionalRoles
(org.springframework.ldap.core.DirContextOperations user, String username) void
setUserAdditionalRoleProvider
(LdapUserAdditionalRoleProvider ldapUserAdditionalRoleProvider) Methods inherited from class org.springframework.security.ldap.userdetails.DefaultLdapAuthoritiesPopulator
getContextSource, getGrantedAuthorities, getGroupMembershipRoles, getGroupRoleAttribute, getGroupSearchBase, getGroupSearchFilter, getLdapTemplate, getRolePrefix, isConvertToUpperCase, setAuthorityMapper, setConvertToUpperCase, setDefaultRole, setGroupRoleAttribute, setGroupSearchFilter, setIgnorePartialResultException, setRolePrefix, setSearchSubtree
-
Field Details
-
ldapUserAdditionalRoleProvider
-
-
Constructor Details
-
JmixLdapAuthoritiesPopulator
public JmixLdapAuthoritiesPopulator(org.springframework.ldap.core.ContextSource contextSource, String groupSearchBase)
-
-
Method Details
-
setUserAdditionalRoleProvider
@Autowired(required=false) public void setUserAdditionalRoleProvider(LdapUserAdditionalRoleProvider ldapUserAdditionalRoleProvider) -
getAdditionalRoles
protected Set<org.springframework.security.core.GrantedAuthority> getAdditionalRoles(org.springframework.ldap.core.DirContextOperations user, String username) - Overrides:
getAdditionalRoles
in classorg.springframework.security.ldap.userdetails.DefaultLdapAuthoritiesPopulator
-