org.keycloak.storage.ldap.mappers.membership

## Interface UserRolesRetrieveStrategy

- All Known Implementing Classes:
    UserRolesRetrieveStrategy.GetRolesFromUserMemberOfAttribute, UserRolesRetrieveStrategy.LoadRolesByMember, UserRolesRetrieveStrategy.LoadRolesByMemberRecursively

      public interface UserRolesRetrieveStrategy

  Strategy for how to retrieve LDAP roles of user
  Author:
    Marek Posolda

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static class` | `UserRolesRetrieveStrategy.GetRolesFromUserMemberOfAttribute` Roles of user will be retrieved from "memberOf" attribute of our user
    `static class` | `UserRolesRetrieveStrategy.LoadRolesByMember` Roles of user will be retrieved by sending LDAP query to retrieve all roles where "member" is our user
    `static class` | `UserRolesRetrieveStrategy.LoadRolesByMemberRecursively` Extension specific to Active Directory.

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `beforeUserLDAPQuery(CommonLDAPGroupMapper roleOrGroupMapper, LDAPQuery query)`
    `List<LDAPObject>` | `getLDAPRoleMappings(CommonLDAPGroupMapper roleOrGroupMapper, LDAPObject ldapUser, LDAPConfig ldapConfig)`

- - ### Method Detail

    - #### getLDAPRoleMappings

          List<LDAPObject> getLDAPRoleMappings(CommonLDAPGroupMapper roleOrGroupMapper,
                                               LDAPObject ldapUser,
                                               LDAPConfig ldapConfig)

    - #### beforeUserLDAPQuery

          void beforeUserLDAPQuery(CommonLDAPGroupMapper roleOrGroupMapper,
                                   LDAPQuery query)

Copyright © 2020 JBoss by Red Hat. All rights reserved.