public class PropertiesRoleMappingListener extends Object implements org.apache.catalina.LifecycleListener
The following options can be configured:
roleMappingFile
: the properties file containing the mapping from a technical role
(key) to an application role (value). The option can either point to a classpath resource with
classpath:
or with webapp:
to a webapp resource. Omitting a prefix will look in
the webapp by default. The default value is webapp:/WEB-INF/role-mapping.properties
.keyPrefix
: scans all properties with this prefix (e.g., my.roles.
).Context.findRoleMapping(String)
to make use of
the populated mapping.Constructor and Description |
---|
PropertiesRoleMappingListener() |
Modifier and Type | Method and Description |
---|---|
void |
lifecycleEvent(org.apache.catalina.LifecycleEvent le) |
void |
setKeyPrefix(String keyPrefix) |
void |
setRoleMappingFile(String roleMappingFile) |
public void setRoleMappingFile(String roleMappingFile)
public void setKeyPrefix(String keyPrefix)
public void lifecycleEvent(org.apache.catalina.LifecycleEvent le)
lifecycleEvent
in interface org.apache.catalina.LifecycleListener
Copyright © 2013–2023 Michael Osipov. All rights reserved.