Class ServerHttpSecurity.AuthorizeExchangeSpec
java.lang.Object
org.springframework.security.config.web.server.AbstractServerWebExchangeMatcherRegistry<ServerHttpSecurity.AuthorizeExchangeSpec.Access>
org.springframework.security.config.web.server.ServerHttpSecurity.AuthorizeExchangeSpec
- Enclosing class:
- ServerHttpSecurity
public class ServerHttpSecurity.AuthorizeExchangeSpec
extends AbstractServerWebExchangeMatcherRegistry<ServerHttpSecurity.AuthorizeExchangeSpec.Access>
Configures authorization
- Since:
- 5.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionfinal class
Configures the access for a particular set of exchanges. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionand()
Allows method chaining to continue configuring theServerHttpSecurity
Disables authorization.protected void
configure
(ServerHttpSecurity http) protected org.springframework.web.util.pattern.PathPatternParser
registerMatcher
(ServerWebExchangeMatcher matcher) Subclasses should implement this method for returning the object that is chained to the creation of theServerWebExchangeMatcher
instances.Methods inherited from class org.springframework.security.config.web.server.AbstractServerWebExchangeMatcherRegistry
matchers, pathMatchers, pathMatchers, pathMatchers
-
Constructor Details
-
AuthorizeExchangeSpec
public AuthorizeExchangeSpec()
-
-
Method Details
-
and
Allows method chaining to continue configuring theServerHttpSecurity
- Returns:
- the
ServerHttpSecurity
to continue configuring
-
anyExchange
Disables authorization.- Overrides:
anyExchange
in classAbstractServerWebExchangeMatcherRegistry<ServerHttpSecurity.AuthorizeExchangeSpec.Access>
- Returns:
- the
ServerHttpSecurity.AuthorizeExchangeSpec.Access
to continue configuring
-
getPathPatternParser
protected org.springframework.web.util.pattern.PathPatternParser getPathPatternParser() -
registerMatcher
protected ServerHttpSecurity.AuthorizeExchangeSpec.Access registerMatcher(ServerWebExchangeMatcher matcher) Description copied from class:AbstractServerWebExchangeMatcherRegistry
Subclasses should implement this method for returning the object that is chained to the creation of theServerWebExchangeMatcher
instances.- Specified by:
registerMatcher
in classAbstractServerWebExchangeMatcherRegistry<ServerHttpSecurity.AuthorizeExchangeSpec.Access>
- Parameters:
matcher
- theServerWebExchangeMatcher
instances that were created- Returns:
- the chained Object for the subclass which allows association of something
else to the
ServerWebExchangeMatcher
-
configure
-