public class SimpleRolesMappingProvider extends PropertiesRolesMappingProvider
MappingProvider that reads roles from the options map.
The option key is the username to assign roles to and the option value is
the comma separated role names to assign to the user.| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
options |
roles, rolesRsrcNameresult| Constructor and Description |
|---|
SimpleRolesMappingProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(Map<String,Object> options)
Initialize the provider with the configured module options
|
protected boolean |
isValidEntry(String key)
Removes entries that are valid options for super classes
|
protected Properties |
loadRoles()
Load roles from options map
|
performMappinggetCallerPrincipal, setMappingResult, supportspublic void init(Map<String,Object> options)
MappingProviderinit in interface MappingProvider<RoleGroup>init in class PropertiesRolesMappingProviderprotected Properties loadRoles() throws IOException
loadRoles in class PropertiesRolesMappingProviderIOExceptionprotected boolean isValidEntry(String key)
key - entry keyCopyright © 2018 JBoss by Red Hat. All rights reserved.