public class ServerHttpSecurity.AuthorizeExchangeSpec
extends java.lang.Object
ServerHttpSecurity.authorizeExchange()| Modifier and Type | Class and Description |
|---|---|
class |
ServerHttpSecurity.AuthorizeExchangeSpec.Access
Configures the access for a particular set of exchanges.
|
| Constructor and Description |
|---|
AuthorizeExchangeSpec() |
| Modifier and Type | Method and Description |
|---|---|
ServerHttpSecurity |
and()
Allows method chaining to continue configuring the
ServerHttpSecurity |
ServerHttpSecurity.AuthorizeExchangeSpec.Access |
anyExchange()
Disables authorization.
|
protected void |
configure(ServerHttpSecurity http) |
T |
matchers(org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher... matchers)
Associates a list of
ServerWebExchangeMatcher instances |
T |
pathMatchers(org.springframework.http.HttpMethod method)
Maps a
List of
PathPatternParserServerWebExchangeMatcher
instances. |
T |
pathMatchers(org.springframework.http.HttpMethod method,
java.lang.String... antPatterns)
Maps a
List of
PathPatternParserServerWebExchangeMatcher
instances. |
T |
pathMatchers(java.lang.String... antPatterns)
Maps a
List of
PathPatternParserServerWebExchangeMatcher
instances that do not care which HttpMethod is used. |
protected ServerHttpSecurity.AuthorizeExchangeSpec.Access |
registerMatcher(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 the
ServerWebExchangeMatcher instances. |
public ServerHttpSecurity and()
ServerHttpSecurityServerHttpSecurity to continue configuringpublic ServerHttpSecurity.AuthorizeExchangeSpec.Access anyExchange()
ServerHttpSecurity.AuthorizeExchangeSpec.Access to continue configuringprotected ServerHttpSecurity.AuthorizeExchangeSpec.Access registerMatcher(org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher matcher)
ServerWebExchangeMatcher instances.matcher - the ServerWebExchangeMatcher instances that were createdServerWebExchangeMatcherprotected void configure(ServerHttpSecurity http)
public T pathMatchers(org.springframework.http.HttpMethod method)
List of
PathPatternParserServerWebExchangeMatcher
instances.method - the HttpMethod to use for any
HttpMethod.ServerWebExchangeMatcherpublic T pathMatchers(org.springframework.http.HttpMethod method,
java.lang.String... antPatterns)
List of
PathPatternParserServerWebExchangeMatcher
instances.method - the HttpMethod to use or null for any
HttpMethod.antPatterns - the ant patterns to create. If null or empty, then matches on nothing.
PathPatternParserServerWebExchangeMatcher fromServerWebExchangeMatcherpublic T pathMatchers(java.lang.String... antPatterns)
List of
PathPatternParserServerWebExchangeMatcher
instances that do not care which HttpMethod is used.antPatterns - the ant patterns to create
PathPatternParserServerWebExchangeMatcher fromServerWebExchangeMatcherpublic T matchers(org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher... matchers)
ServerWebExchangeMatcher instancesmatchers - the ServerWebExchangeMatcher instancesServerWebExchangeMatcher