public class PropertiesRolesMappingProvider extends AbstractRolesMappingProvider
MappingProvider that reads roles from a properties file in the format
username=role1,role2,...
and adds those roles to the security context for authorization purposes.| Modifier and Type | Field and Description |
|---|---|
protected Properties |
roles |
protected String |
rolesRsrcName |
result| Constructor and Description |
|---|
PropertiesRolesMappingProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(Map<String,Object> options)
Initialize the provider with the configured module options
|
protected Properties |
loadRoles() |
void |
performMapping(Map<String,Object> contextMap,
RoleGroup mappedObject)
Map the passed object
|
getCallerPrincipal, setMappingResult, supportsprotected String rolesRsrcName
protected Properties roles
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 Properties loadRoles() throws IOException
IOExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.