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>
Traditional strategy.
- Since:
- 1.10
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends org.springframework.security.core.GrantedAuthority>
getGrantedAuthorities
(org.springframework.ldap.core.DirContextOperations userData, String username) Returns theGrantedAuthority
s that the specified user belongs to.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 Details
-
FromGroupSearchLDAPGroupMembershipStrategy
-
-
Method Details
-
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
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.
-