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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(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, waitMethods inherited from interface org.springframework.security.web.util.matcher.RequestMatcher
matcher
-
Field Details
-
INSTANCE
An instance of this class.
-
-
Method Details
-
matches
public boolean matches(jakarta.servlet.http.HttpServletRequest request) Matches the preconfigured list of protected paths.- Specified by:
matchesin interfaceorg.springframework.security.web.util.matcher.RequestMatcher- Parameters:
request- a request- Returns:
- true if path is /v1/...
-