Package jenkins.security.plugins.ldap
Class FromGroupSearchLDAPGroupMembershipStrategy
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<LDAPGroupMembershipStrategy>
-
- jenkins.security.plugins.ldap.LDAPGroupMembershipStrategy
-
- jenkins.security.plugins.ldap.FromGroupSearchLDAPGroupMembershipStrategy
-
- All Implemented Interfaces:
Describable<LDAPGroupMembershipStrategy>
public class FromGroupSearchLDAPGroupMembershipStrategy extends LDAPGroupMembershipStrategy
Traditional strategy.- Since:
- 1.10
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FromGroupSearchLDAPGroupMembershipStrategy.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description FromGroupSearchLDAPGroupMembershipStrategy(String filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFilter()
Collection<? extends org.springframework.security.core.GrantedAuthority>
getGrantedAuthorities(org.springframework.ldap.core.DirContextOperations userData, String username)
Returns theGrantedAuthority
s that the specified user belongs to.Set<String>
getGroupMembers(String groupDn, LDAPConfiguration conf)
Returns aSet
of all members in the specified group.void
setAuthoritiesPopulator(org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator authoritiesPopulator)
Override this method if you want to change the configuration of theLdapAuthoritiesPopulator
.-
Methods inherited from class jenkins.security.plugins.ldap.LDAPGroupMembershipStrategy
getAuthoritiesPopulator
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
FromGroupSearchLDAPGroupMembershipStrategy
@DataBoundConstructor public FromGroupSearchLDAPGroupMembershipStrategy(String filter)
-
-
Method Detail
-
getFilter
public String getFilter()
-
setAuthoritiesPopulator
public void setAuthoritiesPopulator(org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator authoritiesPopulator)
Description copied from class:LDAPGroupMembershipStrategy
Override this method if you want to change the configuration of theLdapAuthoritiesPopulator
.- Overrides:
setAuthoritiesPopulator
in classLDAPGroupMembershipStrategy
- Parameters:
authoritiesPopulator
- theLdapAuthoritiesPopulator
to use (and abuse).
-
getGrantedAuthorities
public Collection<? extends org.springframework.security.core.GrantedAuthority> getGrantedAuthorities(org.springframework.ldap.core.DirContextOperations userData, String username)
Description copied from class:LDAPGroupMembershipStrategy
Returns theGrantedAuthority
s that the specified user belongs to.- Specified by:
getGrantedAuthorities
in classLDAPGroupMembershipStrategy
- Parameters:
userData
- as in- Returns:
- the
GrantedAuthority
s that the specified user belongs to.
-
getGroupMembers
public Set<String> getGroupMembers(String groupDn, LDAPConfiguration conf)
Description copied from class:LDAPGroupMembershipStrategy
Returns aSet
of all members in the specified group.- Overrides:
getGroupMembers
in classLDAPGroupMembershipStrategy
- Parameters:
groupDn
- the DN of the group whose members will be returned.conf
- theLDAPConfiguration
that controls some search variables.- Returns:
- a set of all members in the specified group, or null if the members could not be found.
-
-