Class UserRolesRetrieveStrategy.LoadRolesByMember
java.lang.Object
org.keycloak.storage.ldap.mappers.membership.UserRolesRetrieveStrategy.LoadRolesByMember
- All Implemented Interfaces:
UserRolesRetrieveStrategy
- Direct Known Subclasses:
UserRolesRetrieveStrategy.LoadRolesByMemberRecursively
- Enclosing interface:
- UserRolesRetrieveStrategy
public static class UserRolesRetrieveStrategy.LoadRolesByMember
extends Object
implements UserRolesRetrieveStrategy
Roles of user will be retrieved by sending LDAP query to retrieve all roles where "member" is our user
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.storage.ldap.mappers.membership.UserRolesRetrieveStrategy
UserRolesRetrieveStrategy.GetRolesFromUserMemberOfAttribute, UserRolesRetrieveStrategy.LoadRolesByMember, UserRolesRetrieveStrategy.LoadRolesByMemberRecursively
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
beforeUserLDAPQuery
(CommonLDAPGroupMapper roleOrGroupMapper, LDAPQuery query) getLDAPRoleMappings
(CommonLDAPGroupMapper roleOrGroupMapper, LDAPObject ldapUser, LDAPConfig ldapConfig) protected Condition
getMembershipCondition
(String membershipAttr, String userMembership)
-
Constructor Details
-
LoadRolesByMember
public LoadRolesByMember()
-
-
Method Details
-
getLDAPRoleMappings
public List<LDAPObject> getLDAPRoleMappings(CommonLDAPGroupMapper roleOrGroupMapper, LDAPObject ldapUser, LDAPConfig ldapConfig) - Specified by:
getLDAPRoleMappings
in interfaceUserRolesRetrieveStrategy
-
beforeUserLDAPQuery
- Specified by:
beforeUserLDAPQuery
in interfaceUserRolesRetrieveStrategy
-
getMembershipCondition
-