org.camunda.bpm.webapp.impl.security.filter.util
Class FilterRules
java.lang.Object
org.camunda.bpm.webapp.impl.security.filter.util.FilterRules
public class FilterRules
- extends Object
Utility to load and match filter rules.
- Author:
- nico.rehwaldt
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilterRules
public FilterRules()
load
public static List<SecurityFilterRule> load(InputStream configFileResource)
throws IOException
- Throws:
IOException
createFilterRules
public static List<SecurityFilterRule> createFilterRules(SecurityFilterConfig config)
createPathFilterRule
protected static PathFilterRule createPathFilterRule(SecurityFilterConfig.PathFilterConfig pathFilter)
transformPathMatcher
protected static RequestMatcher transformPathMatcher(SecurityFilterConfig.PathMatcherConfig pathMatcherConfig)
authorize
public static Authorization authorize(String requestMethod,
String requestUri,
List<SecurityFilterRule> filterRules)
- Iterate over a number of filter rules and match them against
the given request.
- Parameters:
requestMethod - requestUri - filterRules -
- Returns:
- the checked request with authorization information attached
Copyright © 2018 camunda services GmbH. All rights reserved.