Class ActuatorRequestMatcher

  • All Implemented Interfaces:
    org.springframework.security.web.util.matcher.RequestMatcher

    public class ActuatorRequestMatcher
    extends org.springframework.boot.security.servlet.ApplicationContextRequestMatcher<org.springframework.web.context.WebApplicationContext>
    A RequestMatcher that is matches all endpoints of an actuator. It should be used when creating a request matcher when configuring Spring Security. This class is needed as there is no such support from Spring Boot at this moment.
    Author:
    Filip Hrisafov
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.springframework.security.web.util.matcher.RequestMatcher

        org.springframework.security.web.util.matcher.RequestMatcher.MatchResult
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.springframework.security.web.util.matcher.RequestMatcher createDelegate​(org.springframework.web.context.WebApplicationContext context, org.flowable.ui.common.security.ActuatorRequestMatcher.RequestMatcherFactory requestMatcherFactory)  
      protected void initialized​(Supplier<org.springframework.web.context.WebApplicationContext> context)  
      protected boolean matches​(javax.servlet.http.HttpServletRequest request, Supplier<org.springframework.web.context.WebApplicationContext> context)  
      • Methods inherited from class org.springframework.boot.security.servlet.ApplicationContextRequestMatcher

        ignoreApplicationContext, matches
      • Methods inherited from interface org.springframework.security.web.util.matcher.RequestMatcher

        matcher
    • Constructor Detail

      • ActuatorRequestMatcher

        public ActuatorRequestMatcher()
    • Method Detail

      • initialized

        protected final void initialized​(Supplier<org.springframework.web.context.WebApplicationContext> context)
        Overrides:
        initialized in class org.springframework.boot.security.servlet.ApplicationContextRequestMatcher<org.springframework.web.context.WebApplicationContext>
      • matches

        protected final boolean matches​(javax.servlet.http.HttpServletRequest request,
                                        Supplier<org.springframework.web.context.WebApplicationContext> context)
        Specified by:
        matches in class org.springframework.boot.security.servlet.ApplicationContextRequestMatcher<org.springframework.web.context.WebApplicationContext>
      • createDelegate

        protected org.springframework.security.web.util.matcher.RequestMatcher createDelegate​(org.springframework.web.context.WebApplicationContext context,
                                                                                              org.flowable.ui.common.security.ActuatorRequestMatcher.RequestMatcherFactory requestMatcherFactory)