Class ConfigurationInterceptUrlMapRule

    • Field Detail

      • ORDER

        public static final java.lang.Integer ORDER
        The order of the rule.
    • Constructor Detail

      • ConfigurationInterceptUrlMapRule

        @Inject
        public ConfigurationInterceptUrlMapRule​(RolesFinder rolesFinder,
                                                SecurityConfiguration securityConfiguration)
        Parameters:
        rolesFinder - Roles Parser
        securityConfiguration - The Security Configuration
    • Method Detail

      • getOrder

        public int getOrder()
      • check

        public org.reactivestreams.Publisher<SecurityRuleResult> check​(io.micronaut.http.HttpRequest<?> request,
                                                                       @Nullable
                                                                       io.micronaut.web.router.RouteMatch<?> routeMatch,
                                                                       @Nullable
                                                                       Authentication authentication)
        If no configured pattern matches the request, return SecurityRuleResult.UNKNOWN. Reads the rules in order. The first matched rule will be used for determining authorization.
        Parameters:
        request - The current request
        routeMatch - The matched route
        authentication - The user authentication. Null if not authenticated
        Returns:
        The result
        See Also:
        SecurityRuleResult