Class IpPatternsRule

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.Integer ORDER
      The order of the rule.
      • Fields inherited from interface io.micronaut.core.order.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.reactivestreams.Publisher<SecurityRuleResult> check​(io.micronaut.http.HttpRequest<?> request, io.micronaut.web.router.RouteMatch<?> routeMatch, Authentication authentication)
      Returns a publisher that is required to emit a single security result based on any conditions.
      int getOrder()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ORDER

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

      • IpPatternsRule

        @Inject
        public IpPatternsRule​(RolesFinder rolesFinder,
                              SecurityConfiguration securityConfiguration)
        Parameters:
        rolesFinder - Roles Parser
        securityConfiguration - 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)
        Description copied from interface: SecurityRule
        Returns a publisher that is required to emit a single security result based on any conditions.
        Parameters:
        request - The current request
        routeMatch - The matched route or empty if no route was matched. e.g. static resource.
        authentication - The user authentication. Null if not authenticated
        Returns:
        The result
        See Also:
        SecurityRuleResult