public class PathFilterRule extends Object implements SecurityFilterRule
A SecurityFilterRule that deleagates to a set of PathMatchers
How this thing works:
deniedPaths is always granted anonymous access
(even if the user is authenticated for a process engine).
deniedPaths is then also checked against allowedPaths.
allowedPaths is checked by the
corresponding RequestAuthorizer that can decide to grant/deny (identified or anonymous) access.
allowedPaths is always granted anonymous access
(via FilterRules.authorize(String, String, List))| Modifier and Type | Field and Description |
|---|---|
protected List<RequestMatcher> |
allowedPaths |
protected List<RequestMatcher> |
deniedPaths |
| Constructor and Description |
|---|
PathFilterRule() |
| Modifier and Type | Method and Description |
|---|---|
Authorization |
authorize(String requestMethod,
String requestUri)
Authorize the given request and return a
Authorization as a result. |
List<RequestMatcher> |
getAllowedPaths() |
List<RequestMatcher> |
getDeniedPaths() |
protected List<RequestMatcher> allowedPaths
protected List<RequestMatcher> deniedPaths
public Authorization authorize(String requestMethod, String requestUri)
SecurityFilterRuleAuthorization as a result.
May return null if the request could not be authorized.authorize in interface SecurityFilterRulenull if the authorization
for the request could not be checkedpublic List<RequestMatcher> getAllowedPaths()
public List<RequestMatcher> getDeniedPaths()
Copyright © 2014–2019 camunda services GmbH. All rights reserved.