public class FilterRules extends Object
Constructor and Description |
---|
FilterRules() |
Modifier and Type | Method and Description |
---|---|
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) |
public static List<SecurityFilterRule> load(InputStream configFileResource) throws IOException
IOException
public static List<SecurityFilterRule> createFilterRules(SecurityFilterConfig config)
protected static PathFilterRule createPathFilterRule(SecurityFilterConfig.PathFilterConfig pathFilter)
protected static RequestMatcher transformPathMatcher(SecurityFilterConfig.PathMatcherConfig pathMatcherConfig)
public static Authorization authorize(String requestMethod, String requestUri, List<SecurityFilterRule> filterRules)
requestMethod
- requestUri
- filterRules
- Copyright © 2017. All rights reserved.