Class ProtectedRequestMatcher

java.lang.Object
com.erudika.para.server.security.ProtectedRequestMatcher
All Implemented Interfaces:
org.springframework.security.web.util.matcher.RequestMatcher

public final class ProtectedRequestMatcher extends Object implements org.springframework.security.web.util.matcher.RequestMatcher
Protected request matcher - returns true if the request matches any of the configured protected paths (incl wildcards).
Author:
Alex Bogdanovski [[email protected]]
  • Nested Class Summary

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

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

    Fields
    Modifier and Type
    Field
    Description
    An instance of this class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    matches(jakarta.servlet.http.HttpServletRequest request)
    Matches the preconfigured list of protected paths.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.security.web.util.matcher.RequestMatcher

    matcher
  • Field Details

  • Method Details

    • matches

      public boolean matches(jakarta.servlet.http.HttpServletRequest request)
      Matches the preconfigured list of protected paths.
      Specified by:
      matches in interface org.springframework.security.web.util.matcher.RequestMatcher
      Parameters:
      request - a request
      Returns:
      true if path is /v1/...