public class PathService extends Object implements SecurityService
Single init-param 'config.file' which is the location of the XML config file. Default value is '/seraph-paths.xml' (loaded from classpath - usually in /WEB-INF/classes)
Here's a sample of the XML config file. Path names must be unique
<seraph-paths>
<path name="admin">
<url-pattern>/secure/admin/*</url-pattern>
<role-name>administrators</role-name>
</path>
<path name="secured">
<url-pattern>/secure/*</url-pattern>
<role-name>users</role-name>
</path>
</seraph-paths>
| Constructor and Description |
|---|
PathService() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
Set<String> |
getRequiredRoles(javax.servlet.http.HttpServletRequest request) |
Set<String> |
getRequiredRoles(String servletPath) |
void |
init(Map<String,String> params,
SecurityConfig config)
Init the service - configure it from the config file
|
protected String[] |
parseRoles(String roleNames) |
public void init(Map<String,String> params, SecurityConfig config)
public void destroy()
destroy in interface SecurityServicepublic Set<String> getRequiredRoles(javax.servlet.http.HttpServletRequest request)
getRequiredRoles in interface SecurityServiceCopyright © 2018 Atlassian. All rights reserved.