public class ServerHttpSecurity.HttpsRedirectSpec
extends java.lang.Object
ServerHttpSecurity.redirectToHttps()| Constructor and Description |
|---|
HttpsRedirectSpec() |
| Modifier and Type | Method and Description |
|---|---|
ServerHttpSecurity |
and()
Allows method chaining to continue configuring the
ServerHttpSecurity |
protected void |
configure(ServerHttpSecurity http) |
ServerHttpSecurity.HttpsRedirectSpec |
httpsRedirectWhen(java.util.function.Function<org.springframework.web.server.ServerWebExchange,java.lang.Boolean> when)
Configures when this filter should redirect to https
By default, the filter will redirect whenever an exchange's scheme is not https
|
ServerHttpSecurity.HttpsRedirectSpec |
httpsRedirectWhen(org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher... matchers)
Configures when this filter should redirect to https
By default, the filter will redirect whenever an exchange's scheme is not https
|
ServerHttpSecurity.HttpsRedirectSpec |
portMapper(org.springframework.security.web.PortMapper portMapper)
Configures a custom HTTPS port to redirect to
|
public ServerHttpSecurity.HttpsRedirectSpec httpsRedirectWhen(org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher... matchers)
matchers - the list of conditions that, when any are met, the filter should redirect to httpsServerHttpSecurity.HttpsRedirectSpec for additional configurationpublic ServerHttpSecurity.HttpsRedirectSpec httpsRedirectWhen(java.util.function.Function<org.springframework.web.server.ServerWebExchange,java.lang.Boolean> when)
when - determines when to redirect to httpsServerHttpSecurity.HttpsRedirectSpec for additional configurationpublic ServerHttpSecurity.HttpsRedirectSpec portMapper(org.springframework.security.web.PortMapper portMapper)
portMapper - the PortMapper to useServerHttpSecurity.HttpsRedirectSpec for additional configurationprotected void configure(ServerHttpSecurity http)
public ServerHttpSecurity and()
ServerHttpSecurityServerHttpSecurity to continue configuring