public class ServerHttpSecurity.HttpBasicSpec
extends java.lang.Object
ServerHttpSecurity.httpBasic()| Modifier and Type | Method and Description |
|---|---|
ServerHttpSecurity |
and()
Allows method chaining to continue configuring the
ServerHttpSecurity |
ServerHttpSecurity.HttpBasicSpec |
authenticationManager(ReactiveAuthenticationManager authenticationManager)
The
ReactiveAuthenticationManager used to authenticate. |
protected void |
configure(ServerHttpSecurity http) |
ServerHttpSecurity |
disable()
Disables HTTP Basic authentication.
|
ServerHttpSecurity.HttpBasicSpec |
securityContextRepository(ServerSecurityContextRepository securityContextRepository)
The
ServerSecurityContextRepository used to save the Authentication. |
public ServerHttpSecurity.HttpBasicSpec authenticationManager(ReactiveAuthenticationManager authenticationManager)
ReactiveAuthenticationManager used to authenticate. Defaults to
ServerHttpSecurity.authenticationManager(ReactiveAuthenticationManager).authenticationManager - the authentication manager to useServerHttpSecurity.HttpBasicSpec to continue configuringpublic ServerHttpSecurity.HttpBasicSpec securityContextRepository(ServerSecurityContextRepository securityContextRepository)
ServerSecurityContextRepository used to save the Authentication. Defaults to
NoOpServerSecurityContextRepository. For the SecurityContext to be loaded on subsequent
requests the ReactorContextWebFilter must be configured to be able to load the value (they are not
implicitly linked).securityContextRepository - the repository to useServerHttpSecurity.HttpBasicSpec to continue configuringpublic ServerHttpSecurity and()
ServerHttpSecurityServerHttpSecurity to continue configuringpublic ServerHttpSecurity disable()
ServerHttpSecurity to continue configuringprotected void configure(ServerHttpSecurity http)