org.jboss.security.mapping.providers.role
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) |
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)
init
in interface org.jboss.security.mapping.MappingProvider<RoleGroup>
init
in class PropertiesRolesMappingProvider
protected Properties loadRoles() throws IOException
loadRoles
in class PropertiesRolesMappingProvider
IOException
protected boolean isValidEntry(String key)
key
- entry keyCopyright © 2015 JBoss Inc.. All Rights Reserved.