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, rolesRsrcName
result
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
|
performMapping
getCallerPrincipal, setMappingResult, supports
public void init(Map<String,Object> options)
MappingProvider
init
in interface MappingProvider<RoleGroup>
init
in class PropertiesRolesMappingProvider
protected Properties loadRoles() throws IOException
loadRoles
in class PropertiesRolesMappingProvider
IOException
protected boolean isValidEntry(String key)
key
- entry keyCopyright © 2018 JBoss by Red Hat. All rights reserved.