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
Nested ClassesModifier and TypeClassDescriptionfinal classConfigures the access for a particular set of exchanges. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionand()Deprecated, for removal: This API element is subject to removal in a future version.For removal in 7.0.Disables authorization.protected voidconfigure(ServerHttpSecurity http) protected org.springframework.web.util.pattern.PathPatternParserregisterMatcher(ServerWebExchangeMatcher matcher) Subclasses should implement this method for returning the object that is chained to the creation of theServerWebExchangeMatcherinstances.Methods inherited from class org.springframework.security.config.web.server.AbstractServerWebExchangeMatcherRegistry
matchers, pathMatchers, pathMatchers, pathMatchers
-
Constructor Details
-
AuthorizeExchangeSpec
public AuthorizeExchangeSpec()
-
-
Method Details
-
and
Deprecated, for removal: This API element is subject to removal in a future version.For removal in 7.0. UseServerHttpSecurity.authorizeExchange(Customizer)insteadAllows method chaining to continue configuring theServerHttpSecurity- Returns:
- the
ServerHttpSecurityto continue configuring
-
anyExchange
Disables authorization.- Overrides:
anyExchangein classAbstractServerWebExchangeMatcherRegistry<ServerHttpSecurity.AuthorizeExchangeSpec.Access>- Returns:
- the
ServerHttpSecurity.AuthorizeExchangeSpec.Accessto continue configuring
-
getPathPatternParser
protected org.springframework.web.util.pattern.PathPatternParser getPathPatternParser() -
registerMatcher
protected ServerHttpSecurity.AuthorizeExchangeSpec.Access registerMatcher(ServerWebExchangeMatcher matcher) Description copied from class:AbstractServerWebExchangeMatcherRegistrySubclasses should implement this method for returning the object that is chained to the creation of theServerWebExchangeMatcherinstances.- Specified by:
registerMatcherin classAbstractServerWebExchangeMatcherRegistry<ServerHttpSecurity.AuthorizeExchangeSpec.Access>- Parameters:
matcher- theServerWebExchangeMatcherinstances that were created- Returns:
- the chained Object for the subclass which allows association of something
else to the
ServerWebExchangeMatcher
-
configure
-