public class LdapRolesMappingProvider extends AbstractRolesMappingProvider
| Modifier and Type | Field and Description |
|---|---|
protected String |
bindCredential |
protected String |
bindDN |
protected Map<String,Object> |
options |
protected boolean |
parseRoleNameFromDN |
protected int |
recursion |
protected String |
roleAttributeID |
protected boolean |
roleAttributeIsDN |
protected String |
roleFilter |
protected String |
roleNameAttributeID |
protected String |
rolesCtxDN |
protected int |
searchScope |
protected int |
searchTimeLimit |
result| Constructor and Description |
|---|
LdapRolesMappingProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected InitialLdapContext |
constructInitialLdapContext(String dn,
Object credential) |
void |
init(Map<String,Object> options)
Initialize the provider with the configured module options
|
void |
performMapping(Map<String,Object> contextMap,
RoleGroup mappedObject)
Map the passed object
|
protected void |
rolesSearch(InitialLdapContext ctx,
SearchControls constraints,
String user,
int recursionMax,
int nesting,
RoleGroup roleGroup) |
protected void |
rolesSearch(InitialLdapContext ctx,
SearchControls constraints,
String user,
String previousRoleDn,
int recursionMax,
int nesting,
RoleGroup roleGroup) |
getCallerPrincipal, setMappingResult, supportsprotected String bindDN
protected String bindCredential
protected String rolesCtxDN
protected String roleFilter
protected String roleAttributeID
protected String roleNameAttributeID
protected boolean roleAttributeIsDN
protected boolean parseRoleNameFromDN
protected int recursion
protected int searchTimeLimit
protected int searchScope
public void init(Map<String,Object> options)
MappingProviderpublic void performMapping(Map<String,Object> contextMap, RoleGroup mappedObject)
MappingProvidercontextMap - A read-only contextual map that can provide information to the providermappedObject - an Object on which the mapping will be appliedprotected InitialLdapContext constructInitialLdapContext(String dn, Object credential) throws NamingException
NamingExceptionprotected void rolesSearch(InitialLdapContext ctx, SearchControls constraints, String user, int recursionMax, int nesting, RoleGroup roleGroup) throws NamingException
NamingExceptionprotected void rolesSearch(InitialLdapContext ctx, SearchControls constraints, String user, String previousRoleDn, int recursionMax, int nesting, RoleGroup roleGroup) throws NamingException
NamingExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.