org.camunda.bpm.webapp.impl.security.filter.util
Class FilterRules

java.lang.Object
  extended by org.camunda.bpm.webapp.impl.security.filter.util.FilterRules

public class FilterRules
extends Object

Utility to load and match filter rules.

Author:
nico.rehwaldt

Constructor Summary
FilterRules()
           
 
Method Summary
static Authorization authorize(String requestMethod, String requestUri, List<SecurityFilterRule> filterRules)
          Iterate over a number of filter rules and match them against the given request.
static List<SecurityFilterRule> createFilterRules(SecurityFilterConfig config)
           
protected static PathFilterRule createPathFilterRule(SecurityFilterConfig.PathFilterConfig pathFilter)
           
static List<SecurityFilterRule> load(InputStream configFileResource)
           
protected static RequestMatcher transformPathMatcher(SecurityFilterConfig.PathMatcherConfig pathMatcherConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterRules

public FilterRules()
Method Detail

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.