Class FilterRules


  • public class FilterRules
    extends java.lang.Object
    Utility to load and match filter rules.
    Author:
    nico.rehwaldt
    • Constructor Detail

      • FilterRules

        public FilterRules()
    • Method Detail

      • load

        public static java.util.List<SecurityFilterRule> load​(java.io.InputStream configFileResource,
                                                              java.lang.String applicationPath)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • authorize

        public static Authorization authorize​(java.lang.String requestMethod,
                                              java.lang.String requestUri,
                                              java.util.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