org.jboss.security.mapping.providers.role
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) |
protected Properties |
loadRoles() |
void |
performMapping(Map<String,Object> contextMap,
RoleGroup mappedObject) |
getCallerPrincipal, setMappingResult, supports
protected String rolesRsrcName
protected Properties roles
protected Properties loadRoles() throws IOException
IOException
Copyright © 2015 JBoss Inc.. All Rights Reserved.