Class PathFilterRule
- java.lang.Object
-
- org.camunda.bpm.webapp.impl.security.filter.PathFilterRule
-
- All Implemented Interfaces:
SecurityFilterRule
public class PathFilterRule extends Object implements SecurityFilterRule
A
SecurityFilterRulethat deleagates to a set ofPathMatchersHow this thing works:
- A path that is not listed in
deniedPathsis always granted anonymous access (even if the user is authenticated for a process engine). - A path that is listed in
deniedPathsis then also checked againstallowedPaths. - A path that is listed in
allowedPathsis checked by the correspondingRequestAuthorizerthat can decide to grant/deny (identified or anonymous) access. - A path that is not listed in
allowedPathsis always granted anonymous access (viaFilterRules.authorize(String, String, List))
- Author:
- Daniel Meyer, nico.rehwaldt
-
-
Field Summary
Fields Modifier and Type Field Description protected List<RequestMatcher>allowedPathsprotected List<RequestMatcher>deniedPaths
-
Constructor Summary
Constructors Constructor Description PathFilterRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Authorizationauthorize(String requestMethod, String requestUri)Authorize the given request and return aAuthorizationas a result.List<RequestMatcher>getAllowedPaths()List<RequestMatcher>getDeniedPaths()
-
-
-
Field Detail
-
allowedPaths
protected List<RequestMatcher> allowedPaths
-
deniedPaths
protected List<RequestMatcher> deniedPaths
-
-
Method Detail
-
authorize
public Authorization authorize(String requestMethod, String requestUri)
Description copied from interface:SecurityFilterRuleAuthorize the given request and return aAuthorizationas a result. May returnnullif the request could not be authorized.- Specified by:
authorizein interfaceSecurityFilterRule- Returns:
- the authorization for the given request or
nullif the authorization for the request could not be checked
-
getAllowedPaths
public List<RequestMatcher> getAllowedPaths()
-
getDeniedPaths
public List<RequestMatcher> getDeniedPaths()
-
-