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:
ServerHttpSecurity.authorizeExchange()
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classServerHttpSecurity.AuthorizeExchangeSpec.AccessConfigures the access for a particular set of exchanges.
-
Constructor Summary
Constructors Constructor Description AuthorizeExchangeSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerHttpSecurityand()Allows method chaining to continue configuring theServerHttpSecurityServerHttpSecurity.AuthorizeExchangeSpec.AccessanyExchange()Disables authorization.protected voidconfigure(ServerHttpSecurity http)protected ServerHttpSecurity.AuthorizeExchangeSpec.AccessregisterMatcher(org.springframework.security.web.server.util.matcher.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
-
-
-
-
Method Detail
-
and
public ServerHttpSecurity and()
Allows method chaining to continue configuring theServerHttpSecurity- Returns:
- the
ServerHttpSecurityto continue configuring
-
anyExchange
public ServerHttpSecurity.AuthorizeExchangeSpec.Access anyExchange()
Disables authorization.- Overrides:
anyExchangein classAbstractServerWebExchangeMatcherRegistry<ServerHttpSecurity.AuthorizeExchangeSpec.Access>- Returns:
- the
ServerHttpSecurity.AuthorizeExchangeSpec.Accessto continue configuring
-
registerMatcher
protected ServerHttpSecurity.AuthorizeExchangeSpec.Access registerMatcher(org.springframework.security.web.server.util.matcher.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
protected void configure(ServerHttpSecurity http)
-
-