-
Terminally Deprecated ElementsElementDescriptionFor removal in 7.0. Use the lambda based configuration instead.For removal in 7.0. Use
HttpSecurity.anonymous(Customizer)insteadFor removal in 7.0. UseHttpSecurity.authorizeHttpRequests(Customizer)insteadFor removal in 7.0. UseHttpSecurity.cors(Customizer)insteadFor removal in 7.0. UseHttpSecurity.csrf(Customizer)insteadFor removal in 7.0. UseHttpSecurity.exceptionHandling(Customizer)insteadFor removal in 7.0. UseHttpSecurity.formLogin(Customizer)insteadFor removal in 7.0. UseHttpSecurity.headers(Customizer)insteadFor removal in 7.0. UseHttpSecurity.httpBasic(Customizer)insteadFor removal in 7.0. UseHttpSecurity.jee(Customizer)insteadFor removal in 7.0. UseHttpSecurity.logout(Customizer)insteadFor removal in 7.0. UseHttpSecurity.oauth2Client(Customizer)insteadFor removal in 7.0. UseHttpSecurity.oauth2Login(Customizer)insteadFor removal in 7.0. UseHttpSecurity.oauth2ResourceServer(Customizer)insteadFor removal in 7.0. UseHttpSecurity.portMapper(Customizer)insteadFor removal in 7.0. UseHttpSecurity.rememberMe(Customizer)insteadFor removal in 7.0. UseHttpSecurity.requestCache(Customizer)insteadUse the lambda based configuration instead. For example:@Configuration @EnableWebSecurity public class SecurityConfig { @Bean public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception { http .securityMatchers((matchers) -> matchers .requestMatchers("/api/**") ) .authorizeHttpRequests((authorize) -> authorize .anyRequest().hasRole("USER") ) .httpBasic(Customizer.withDefaults()); return http.build(); } }For removal in 7.0. UseHttpSecurity.requiresChannel(Customizer)insteadFor removal in 7.0. UseHttpSecurity.saml2Login(Customizer)insteadFor removal in 7.0. UseHttpSecurity.saml2Logout(Customizer)insteadFor removal in 7.0. UseHttpSecurity.saml2Metadata(Customizer)insteadFor removal in 7.0. UseHttpSecurity.securityContext(Customizer)insteadFor removal in 7.0. UseHttpSecurity.securityMatchers(Customizer)insteadFor removal in 7.0. UseHttpSecurity.servletApi(Customizer)insteadFor removal in 7.0. UseHttpSecurity.sessionManagement(Customizer)insteadFor removal in 7.0. UseHttpSecurity.x509(Customizer)insteadFor removal in 7.0. Use the lambda based configuration instead.Permit access to theDispatcherTypeinstead.@Configuration @EnableWebSecurity public class SecurityConfig { @Bean public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception { http .authorizeHttpRequests((authorize) -> authorize .dispatcherTypeMatchers(DispatcherType.ERROR).permitAll() // ... ); return http.build(); } }For removal in 7.0. UseHttpSecurity.requiresChannel(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.cacheControl(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.cacheControl(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.contentSecurityPolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.contentSecurityPolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.contentTypeOptions(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.contentTypeOptions(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.crossOriginEmbedderPolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.crossOriginEmbedderPolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.crossOriginOpenerPolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.crossOriginOpenerPolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.crossOriginResourcePolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.crossOriginResourcePolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.frameOptions(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.frameOptions(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.httpStrictTransportSecurity(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.httpStrictTransportSecurity(Customizer)insteadorg.springframework.security.config.annotation.web.configurers.HeadersConfigurer.permissionsPolicy()For removal in 7.0. UseHeadersConfigurer.permissionsPolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.permissionsPolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.referrerPolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.referrerPolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.referrerPolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.xssProtection(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.xssProtection(Customizer)insteadFor removal in 7.0. UseOAuth2ClientConfigurer.authorizationCodeGrant(Customizer)insteadFor removal in 7.0. UseOAuth2ClientConfigurer.authorizationCodeGrant(Customizer)insteadFor removal in 7.0. UseOAuth2LoginConfigurer.authorizationEndpoint(Customizer)insteadFor removal in 7.0. UseOAuth2LoginConfigurer.authorizationEndpoint(Customizer)insteadFor removal in 7.0. UseOAuth2LoginConfigurer.redirectionEndpoint(Customizer)insteadFor removal in 7.0. UseOAuth2LoginConfigurer.redirectionEndpoint(Customizer)insteadFor removal in 7.0. UseOAuth2LoginConfigurer.tokenEndpoint(Customizer)insteadFor removal in 7.0. UseOAuth2LoginConfigurer.tokenEndpoint(Customizer)insteadFor removal in 7.0. UseOAuth2LoginConfigurer.userInfoEndpoint(Customizer)insteadFor removal in 7.0. UseOAuth2LoginConfigurer.userInfoEndpoint(Customizer)insteadFor removal in 7.0. UseOAuth2ResourceServerConfigurer.jwt(Customizer)insteadFor removal in 7.0. UseOAuth2ResourceServerConfigurer.jwt(Customizer)insteadFor removal in 7.0. UseOAuth2ResourceServerConfigurer.opaqueToken(Customizer)insteadFor removal in 7.0. UseSaml2LogoutConfigurer.logoutRequest(Customizer)insteadFor removal in 7.0. UseSaml2LogoutConfigurer.logoutRequest(Customizer)insteadFor removal in 7.0. UseSaml2LogoutConfigurer.logoutResponse(Customizer)insteadFor removal in 7.0. UseSaml2LogoutConfigurer.logoutResponse(Customizer)insteadFor removal in 7.0. UseSessionManagementConfigurer.sessionConcurrency(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.anonymous(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.anonymous(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.authorizeExchange(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.authorizeExchange(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.cors(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.cors(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.csrf(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.csrf(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.exceptionHandling(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.exceptionHandling(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.formLogin(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.formLogin(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.headers(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.headers(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.cache(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.contentSecurityPolicy(Customizer)instead.For removal in 7.0. UseServerHttpSecurity.HeaderSpec.contentSecurityPolicy(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.contentTypeOptions(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.crossOriginEmbedderPolicy(Customizer)instead.For removal in 7.0. UseServerHttpSecurity.HeaderSpec.crossOriginEmbedderPolicy(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.crossOriginOpenerPolicy(Customizer)instead.For removal in 7.0. UseServerHttpSecurity.HeaderSpec.crossOriginOpenerPolicy(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.crossOriginResourcePolicy(Customizer)instead.For removal in 7.0. UseServerHttpSecurity.HeaderSpec.crossOriginResourcePolicy(Customizer)insteadorg.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.FeaturePolicySpec.and()For removal in 7.0. Use#featurePolicy(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.frameOptions(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.hsts(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.hsts(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.permissionsPolicy(Customizer)instead.For removal in 7.0. UseServerHttpSecurity.HeaderSpec.permissionsPolicy(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.referrerPolicy(Customizer)instead.For removal in 7.0. UseServerHttpSecurity.HeaderSpec.referrerPolicy(Customizer)instead.For removal in 7.0. UseServerHttpSecurity.HeaderSpec.referrerPolicy(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.xssProtection(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.httpBasic(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.httpBasic(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.logout(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.logout(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.oauth2Client(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.oauth2Client(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.oauth2Login(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.oauth2Login(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.oauth2ResourceServer(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.oauth2ResourceServer(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.OAuth2ResourceServerSpec.jwt(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.OAuth2ResourceServerSpec.jwt(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.OAuth2ResourceServerSpec.opaqueToken(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.OAuth2ResourceServerSpec.opaqueToken(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.passwordManagement(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.passwordManagement(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.redirectToHttps(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.requestCache(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.requestCache(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.x509(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.x509(Customizer)instead
-
Deprecated ClassesClassDescriptionUse
PrePostMethodSecurityConfiguration,SecuredMethodSecurityConfiguration, orJsr250MethodSecurityConfigurationinsteadUseAuthorizeHttpRequestsConfigurerinsteadUseAuthorizeHttpRequestsConfigurerinsteadsee Certificate and Public Key Pinning for more contextUseAuthorizeHttpRequestsConfigurerinsteadUseMessageMatcherDelegatingAuthorizationManagerinsteadorg.springframework.security.config.annotation.web.servlet.configuration.WebMvcSecurityConfigurationThis is applied internally using SpringWebMvcImportSelectorUseEnableWebSocketSecurityinsteadUse `use-authorization-manager` property insteadUseMethodSecurityBeanDefinitionParserinsteadUse<intercept-methods>,<method-security>, or@EnableMethodSecurity
-
Deprecated Annotation InterfacesAnnotation InterfaceDescriptionUse
EnableMethodSecurityinsteadUse EnableWebSecurity instead which will automatically add the Spring MVC related Security items.
-
Deprecated MethodsMethodDescriptionFor removal in 7.0. Use the lambda based configuration instead.For removal in 7.0. Use
HttpSecurity.anonymous(Customizer)insteadFor removal in 7.0. UseHttpSecurity.authorizeHttpRequests(Customizer)insteadFor removal in 7.0. UseHttpSecurity.authorizeHttpRequests()insteadFor removal in 7.0. UseHttpSecurity.authorizeHttpRequests()insteadFor removal in 7.0. UseHttpSecurity.cors(Customizer)insteadFor removal in 7.0. UseHttpSecurity.csrf(Customizer)insteadFor removal in 7.0. UseHttpSecurity.exceptionHandling(Customizer)insteadFor removal in 7.0. UseHttpSecurity.formLogin(Customizer)insteadFor removal in 7.0. UseHttpSecurity.headers(Customizer)insteadFor removal in 7.0. UseHttpSecurity.httpBasic(Customizer)insteadFor removal in 7.0. UseHttpSecurity.jee(Customizer)insteadFor removal in 7.0. UseHttpSecurity.logout(Customizer)insteadFor removal in 7.0. UseHttpSecurity.oauth2Client(Customizer)insteadFor removal in 7.0. UseHttpSecurity.oauth2Login(Customizer)insteadFor removal in 7.0. UseHttpSecurity.oauth2ResourceServer(Customizer)insteadFor removal in 7.0. UseHttpSecurity.portMapper(Customizer)insteadFor removal in 7.0. UseHttpSecurity.rememberMe(Customizer)insteadFor removal in 7.0. UseHttpSecurity.requestCache(Customizer)insteadUse the lambda based configuration instead. For example:@Configuration @EnableWebSecurity public class SecurityConfig { @Bean public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception { http .securityMatchers((matchers) -> matchers .requestMatchers("/api/**") ) .authorizeHttpRequests((authorize) -> authorize .anyRequest().hasRole("USER") ) .httpBasic(Customizer.withDefaults()); return http.build(); } }For removal in 7.0. UseHttpSecurity.requiresChannel(Customizer)insteadFor removal in 7.0. UseHttpSecurity.saml2Login(Customizer)insteadFor removal in 7.0. UseHttpSecurity.saml2Logout(Customizer)insteadFor removal in 7.0. UseHttpSecurity.saml2Metadata(Customizer)insteadFor removal in 7.0. UseHttpSecurity.securityContext(Customizer)insteadFor removal in 7.0. UseHttpSecurity.securityMatchers(Customizer)insteadFor removal in 7.0. UseHttpSecurity.servletApi(Customizer)insteadFor removal in 7.0. UseHttpSecurity.sessionManagement(Customizer)insteadFor removal in 7.0. UseHttpSecurity.x509(Customizer)insteadFor removal in 7.0. Use the lambda based configuration instead.Permit access to theDispatcherTypeinstead.@Configuration @EnableWebSecurity public class SecurityConfig { @Bean public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception { http .authorizeHttpRequests((authorize) -> authorize .dispatcherTypeMatchers(DispatcherType.ERROR).permitAll() // ... ); return http.build(); } }For removal in 7.0. UseHttpSecurity.requiresChannel(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.cacheControl(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.cacheControl(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.contentSecurityPolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.contentSecurityPolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.contentTypeOptions(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.contentTypeOptions(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.crossOriginEmbedderPolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.crossOriginEmbedderPolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.crossOriginOpenerPolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.crossOriginOpenerPolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.crossOriginResourcePolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.crossOriginResourcePolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.permissionsPolicy(Customizer)instead.For removal in 7.0. UseHeadersConfigurer.frameOptions(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.frameOptions(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.httpStrictTransportSecurity(Customizer)insteadsee Certificate and Public Key Pinning for more contextsee Certificate and Public Key Pinning for more contextFor removal in 7.0. UseHeadersConfigurer.httpStrictTransportSecurity(Customizer)insteadorg.springframework.security.config.annotation.web.configurers.HeadersConfigurer.permissionsPolicy()For removal in 7.0. UseHeadersConfigurer.permissionsPolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.permissionsPolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.referrerPolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.referrerPolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.referrerPolicy(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.xssProtection(Customizer)insteadFor removal in 7.0. UseHeadersConfigurer.xssProtection(Customizer)insteadFor removal in 7.0. UseOAuth2ClientConfigurer.authorizationCodeGrant(Customizer)insteadFor removal in 7.0. UseOAuth2ClientConfigurer.authorizationCodeGrant(Customizer)insteadFor removal in 7.0. UseOAuth2LoginConfigurer.authorizationEndpoint(Customizer)insteadFor removal in 7.0. UseOAuth2LoginConfigurer.authorizationEndpoint(Customizer)insteadFor removal in 7.0. UseOAuth2LoginConfigurer.redirectionEndpoint(Customizer)insteadFor removal in 7.0. UseOAuth2LoginConfigurer.redirectionEndpoint(Customizer)insteadFor removal in 7.0. UseOAuth2LoginConfigurer.tokenEndpoint(Customizer)insteadFor removal in 7.0. UseOAuth2LoginConfigurer.tokenEndpoint(Customizer)insteadFor removal in 7.0. UseOAuth2LoginConfigurer.userInfoEndpoint(Customizer)insteadFor removal in 7.0. UseOAuth2LoginConfigurer.userInfoEndpoint(Customizer)insteadFor removal in 7.0. UseOAuth2ResourceServerConfigurer.jwt(Customizer)insteadFor removal in 7.0. UseOAuth2ResourceServerConfigurer.jwt(Customizer)insteadFor removal in 7.0. UseOAuth2ResourceServerConfigurer.opaqueToken(Customizer)insteadFor removal in 7.0. UseSaml2LogoutConfigurer.logoutRequest(Customizer)insteadFor removal in 7.0. UseSaml2LogoutConfigurer.logoutRequest(Customizer)insteadFor removal in 7.0. UseSaml2LogoutConfigurer.logoutResponse(Customizer)insteadFor removal in 7.0. UseSaml2LogoutConfigurer.logoutResponse(Customizer)insteadFor removal in 7.0. UseSessionManagementConfigurer.sessionConcurrency(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.anonymous(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.anonymous(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.authorizeExchange(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.authorizeExchange(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.cors(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.cors(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.csrf(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.csrf(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.exceptionHandling(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.exceptionHandling(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.formLogin(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.formLogin(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.headers(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.headers(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.cache(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.contentSecurityPolicy(Customizer)instead.For removal in 7.0. UseServerHttpSecurity.HeaderSpec.contentSecurityPolicy(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.contentTypeOptions(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.crossOriginEmbedderPolicy(Customizer)instead.For removal in 7.0. UseServerHttpSecurity.HeaderSpec.crossOriginEmbedderPolicy(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.crossOriginOpenerPolicy(Customizer)instead.For removal in 7.0. UseServerHttpSecurity.HeaderSpec.crossOriginOpenerPolicy(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.crossOriginResourcePolicy(Customizer)instead.For removal in 7.0. UseServerHttpSecurity.HeaderSpec.crossOriginResourcePolicy(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.permissionsPolicy(Customizer)instead.org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.FeaturePolicySpec.and()For removal in 7.0. Use#featurePolicy(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.frameOptions(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.hsts(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.hsts(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.permissionsPolicy(Customizer)instead.For removal in 7.0. UseServerHttpSecurity.HeaderSpec.permissionsPolicy(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.referrerPolicy(Customizer)instead.For removal in 7.0. UseServerHttpSecurity.HeaderSpec.referrerPolicy(Customizer)instead.For removal in 7.0. UseServerHttpSecurity.HeaderSpec.referrerPolicy(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.HeaderSpec.xssProtection(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.httpBasic(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.httpBasic(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.logout(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.logout(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.oauth2Client(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.oauth2Client(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.oauth2Login(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.oauth2Login(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.oauth2ResourceServer(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.oauth2ResourceServer(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.OAuth2ResourceServerSpec.jwt(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.OAuth2ResourceServerSpec.jwt(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.OAuth2ResourceServerSpec.opaqueToken(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.OAuth2ResourceServerSpec.opaqueToken(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.passwordManagement(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.passwordManagement(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.redirectToHttps(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.requestCache(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.requestCache(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.x509(Customizer)insteadFor removal in 7.0. UseServerHttpSecurity.x509(Customizer)instead