ナビゲーションリンクをスキップ
  • ホーム
  • 概要
  • パッケージ
  • クラス
  • ツリー
  • 非推奨
  • インデックス
  • ヘルプ

非推奨の API

内容

  • 最終的に非推奨
  • インターフェース
  • クラス
  • アノテーションインターフェース
  • フィールド
  • メソッド
  • コンストラクター
  • 列挙型定数
  • 最終的に非推奨の要素
    要素
    説明
    org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder(ObjectPostProcessor<Object>)
    org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder(ObjectPostProcessor<Object>, boolean)
    org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder.apply(C)
    7.0 の取り外し用。代わりに AbstractConfiguredSecurityBuilder.with(SecurityConfigurerAdapter, Customizer) を使用してください。
    org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder(ObjectPostProcessor<Object>)
    org.springframework.security.config.annotation.authentication.configurers.ldap.LdapAuthenticationProviderConfigurer.withObjectPostProcessor(ObjectPostProcessor<?>)
    org.springframework.security.config.annotation.authentication.configurers.userdetails.AbstractDaoAuthenticationConfigurer.withObjectPostProcessor(ObjectPostProcessor<?>)
    org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration.setObjectPostProcessor(ObjectPostProcessor<Object>)
    org.springframework.security.config.annotation.SecurityConfigurerAdapter.addObjectPostProcessor(ObjectPostProcessor<?>)
    org.springframework.security.config.annotation.SecurityConfigurerAdapter.and()
    7.0 の取り外し用。代わりにラムダベースの構成を使用してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity(ObjectPostProcessor<Object>, AuthenticationManagerBuilder, Map<Class<?>, Object>)
    org.springframework.security.config.annotation.web.builders.HttpSecurity.anonymous()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.anonymous(Customizer) または anonymous(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.authorizeHttpRequests()
    7.0 の取り外し用。代わりに HttpSecurity.authorizeHttpRequests(Customizer) を使用してください
    org.springframework.security.config.annotation.web.builders.HttpSecurity.authorizeRequests()
    7.0 の取り外し用。代わりに HttpSecurity.authorizeHttpRequests(Customizer) を使用してください
    org.springframework.security.config.annotation.web.builders.HttpSecurity.authorizeRequests(Customizer<ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry>)
    7.0 の取り外し用。代わりに HttpSecurity.authorizeHttpRequests(Customizer) を使用してください
    org.springframework.security.config.annotation.web.builders.HttpSecurity.cors()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.cors(Customizer) または cors(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.csrf()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.csrf(Customizer) または csrf(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.exceptionHandling()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.exceptionHandling(Customizer) または exceptionHandling(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.formLogin()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.formLogin(Customizer) または formLogin(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.headers()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.headers(Customizer) または headers(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.httpBasic()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.httpBasic(Customizer) または httpBasic(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.jee()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.jee(Customizer) または jee(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.logout()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.logout(Customizer) または logout(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.oauth2Client()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.oauth2Client(Customizer) または oauth2Client(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.oauth2Login()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.oauth2Login(Customizer) または oauth2Login(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.oauth2ResourceServer()
    7.0 の取り外し用。代わりに HttpSecurity.oauth2ResourceServer(Customizer) を使用してください
    org.springframework.security.config.annotation.web.builders.HttpSecurity.portMapper()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.portMapper(Customizer) または portMapper(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.rememberMe()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.rememberMe(Customizer) または rememberMe(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.requestCache()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.requestCache(Customizer) または requestCache(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.RequestMatcherConfigurer.and()
    代わりにラムダベースの構成を使用してください。例:
     @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();
         }
    
     }
     
    org.springframework.security.config.annotation.web.builders.HttpSecurity.requiresChannel()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.requiresChannel(Customizer) または requiresChannel(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.saml2Login()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.saml2Login(Customizer) または saml2Login(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.saml2Logout()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.saml2Logout(Customizer) または saml2Logout(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.saml2Metadata()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.saml2Metadata(Customizer) または saml2Metadata(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.securityContext()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.securityContext(Customizer) または securityContext(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.securityMatchers()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.securityMatchers(Customizer) または securityMatchers(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.servletApi()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.servletApi(Customizer) または servletApi(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.sessionManagement()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.sessionManagement(Customizer) または sessionManagement(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.x509()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.x509(Customizer) または x509(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.WebSecurity(ObjectPostProcessor<Object>)
    org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer.withObjectPostProcessor(ObjectPostProcessor<?>)
    org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry.and()
    7.0 の取り外し用。代わりにラムダベースの構成を使用してください。
    org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry.shouldFilterAllDispatcherTypes(boolean)
    代わりに、DispatcherType へのアクセスを許可します。
     @Configuration
     @EnableWebSecurity
     public class SecurityConfig {
    
            @Bean
            public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
                    http
                            .authorizeHttpRequests((authorize) -> authorize
                                    .dispatcherTypeMatchers(DispatcherType.ERROR).permitAll()
                                    // ...
                            );
                    return http.build();
            }
     }
     
    org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry.withObjectPostProcessor(ObjectPostProcessor<?>)
    org.springframework.security.config.annotation.web.configurers.ChannelSecurityConfigurer.ChannelRequestMatcherRegistry.and()
    7.0 の取り外し用。代わりに HttpSecurity.requiresChannel(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.ChannelSecurityConfigurer.ChannelRequestMatcherRegistry.withObjectPostProcessor(ObjectPostProcessor<?>)
    org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry.withObjectPostProcessor(ObjectPostProcessor<?>)
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.cacheControl()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.cacheControl(Customizer) または cacheControl(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.CacheControlConfig.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.cacheControl(Customizer) または cacheControl(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.contentSecurityPolicy(String)
    7.0 の取り外し用。代わりに HeadersConfigurer.contentSecurityPolicy(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.ContentSecurityPolicyConfig.and()
    7.0 の取り外し用。代わりに HeadersConfigurer.contentSecurityPolicy(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.contentTypeOptions()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.contentTypeOptions(Customizer) または contentTypeOptions(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.ContentTypeOptionsConfig.and()
    7.0 の取り外し用。代わりに HeadersConfigurer.contentTypeOptions(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.crossOriginEmbedderPolicy()
    7.0 の取り外し用。代わりに HeadersConfigurer.crossOriginEmbedderPolicy(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.CrossOriginEmbedderPolicyConfig.and()
    7.0 の取り外し用。代わりに HeadersConfigurer.crossOriginEmbedderPolicy(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.crossOriginOpenerPolicy()
    7.0 の取り外し用。代わりに HeadersConfigurer.crossOriginOpenerPolicy(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.CrossOriginOpenerPolicyConfig.and()
    7.0 の取り外し用。代わりに HeadersConfigurer.crossOriginOpenerPolicy(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.crossOriginResourcePolicy()
    7.0 の取り外し用。代わりに HeadersConfigurer.crossOriginResourcePolicy(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.CrossOriginResourcePolicyConfig.and()
    7.0 の取り外し用。代わりに HeadersConfigurer.crossOriginResourcePolicy(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.frameOptions()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.frameOptions(Customizer) または frameOptions(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.FrameOptionsConfig.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.frameOptions(Customizer) または frameOptions(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.HstsConfig.and()
    7.0 の取り外し用。代わりに HeadersConfigurer.httpStrictTransportSecurity(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.httpStrictTransportSecurity()
    7.0 の取り外し用。代わりに HeadersConfigurer.httpStrictTransportSecurity(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.permissionsPolicy()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.permissionsPolicyHeader(Customizer) または permissionsPolicy(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.permissionsPolicy(Customizer<HeadersConfigurer.PermissionsPolicyConfig>)
    7.0 の取り外し用。代わりに HeadersConfigurer.permissionsPolicyHeader(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.PermissionsPolicyConfig.and()
    7.0 の取り外し用。代わりに HeadersConfigurer.permissionsPolicy(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.referrerPolicy()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.referrerPolicy(Customizer) または referrerPolicy(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.referrerPolicy(ReferrerPolicyHeaderWriter.ReferrerPolicy)
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.referrerPolicy(Customizer) または referrerPolicy(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.ReferrerPolicyConfig.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.referrerPolicy(Customizer) または referrerPolicy(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.xssProtection()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.xssProtection(Customizer) または xssProtection(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.XXssConfig.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.xssProtection(Customizer) または xssProtection(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2ClientConfigurer.authorizationCodeGrant()
    7.0 の取り外し用。代わりに OAuth2ClientConfigurer.authorizationCodeGrant(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2ClientConfigurer.AuthorizationCodeGrantConfigurer.and()
    7.0 の取り外し用。代わりに OAuth2ClientConfigurer.authorizationCodeGrant(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.authorizationEndpoint()
    7.0 の取り外し用。代わりに OAuth2LoginConfigurer.authorizationEndpoint(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.AuthorizationEndpointConfig.and()
    7.0 の取り外し用。代わりに OAuth2LoginConfigurer.authorizationEndpoint(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.redirectionEndpoint()
    7.0 の取り外し用。代わりに OAuth2LoginConfigurer.redirectionEndpoint(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.RedirectionEndpointConfig.and()
    7.0 の取り外し用。代わりに OAuth2LoginConfigurer.redirectionEndpoint(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.tokenEndpoint()
    7.0 の取り外し用。デフォルトをそのまま使用するには、OAuth2LoginConfigurer.tokenEndpoint(Customizer) または tokenEndpoint(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.TokenEndpointConfig.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、OAuth2LoginConfigurer.tokenEndpoint(Customizer) または tokenEndpoint(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.userInfoEndpoint()
    7.0 の取り外し用。デフォルトをそのまま使用するには、OAuth2LoginConfigurer.userInfoEndpoint(Customizer) または userInfoEndpoint(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.UserInfoEndpointConfig.and()
    7.0 の取り外し用。代わりに OAuth2LoginConfigurer.userInfoEndpoint(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.oauth2.client.OidcLogoutConfigurer.and()
    org.springframework.security.config.annotation.web.configurers.oauth2.server.resource.OAuth2ResourceServerConfigurer.jwt()
    7.0 の取り外し用。デフォルトをそのまま使用するには、OAuth2ResourceServerConfigurer.jwt(Customizer) または jwt(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.oauth2.server.resource.OAuth2ResourceServerConfigurer.JwtConfigurer.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、OAuth2ResourceServerConfigurer.jwt(Customizer) または jwt(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.oauth2.server.resource.OAuth2ResourceServerConfigurer.opaqueToken()
    7.0 の取り外し用。デフォルトをそのまま使用するには、OAuth2ResourceServerConfigurer.opaqueToken(Customizer) または opaqueToken(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.saml2.Saml2LogoutConfigurer.logoutRequest()
    7.0 の取り外し用。デフォルトをそのまま使用するには、Saml2LogoutConfigurer.logoutRequest(Customizer) または logoutRequest(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.saml2.Saml2LogoutConfigurer.LogoutRequestConfigurer.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、Saml2LogoutConfigurer.logoutRequest(Customizer) または logoutRequest(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.saml2.Saml2LogoutConfigurer.logoutResponse()
    7.0 の取り外し用。デフォルトをそのまま使用するには、Saml2LogoutConfigurer.logoutResponse(Customizer) または logoutResponse(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.saml2.Saml2LogoutConfigurer.LogoutResponseConfigurer.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、Saml2LogoutConfigurer.logoutResponse(Customizer) または logoutResponse(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.SessionManagementConfigurer.ConcurrencyControlConfigurer.and()
    7.0 の取り外し用。代わりに SessionManagementConfigurer.sessionConcurrency(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.UrlAuthorizationConfigurer.withObjectPostProcessor(ObjectPostProcessor<?>)
    org.springframework.security.config.web.server.ServerHttpSecurity.anonymous()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.anonymous(Customizer) または anonymous(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.AnonymousSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.anonymous(Customizer) または anonymous(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.authorizeExchange()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.authorizeExchange(Customizer) または authorizeExchange(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.AuthorizeExchangeSpec.and()
    7.0 の取り外し用。代わりに ServerHttpSecurity.authorizeExchange(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.cors()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.cors(Customizer) または cors(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.CorsSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.cors(Customizer) または cors(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.csrf()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.csrf(Customizer) または csrf(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.CsrfSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.csrf(Customizer) または csrf(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.exceptionHandling()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.exceptionHandling(Customizer) または exceptionHandling(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.ExceptionHandlingSpec.and()
    7.0 の取り外し用。代わりに ServerHttpSecurity.exceptionHandling(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.formLogin()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.formLogin(Customizer) または formLogin(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.FormLoginSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.formLogin(Customizer) または formLogin(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.headers()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.headers(Customizer) または headers(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.headers(Customizer) または headers(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.cache()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.HeaderSpec.cache(Customizer) または cache(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.contentSecurityPolicy(String)
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.contentSecurityPolicy(Customizer) を使用してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.ContentSecurityPolicySpec.and()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.contentSecurityPolicy(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.contentTypeOptions()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.contentTypeOptions(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.crossOriginEmbedderPolicy()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.crossOriginEmbedderPolicy(Customizer) を使用してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.CrossOriginEmbedderPolicySpec.and()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.crossOriginEmbedderPolicy(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.crossOriginOpenerPolicy()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.crossOriginOpenerPolicy(Customizer) を使用してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.CrossOriginOpenerPolicySpec.and()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.crossOriginOpenerPolicy(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.crossOriginResourcePolicy()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.crossOriginResourcePolicy(Customizer) を使用してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.CrossOriginResourcePolicySpec.and()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.crossOriginResourcePolicy(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.FeaturePolicySpec.and()
    7.0 の取り外し用。代わりに #featurePolicy(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.frameOptions()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.HeaderSpec.frameOptions(Customizer) または frameOptions(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.hsts()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.HeaderSpec.hsts(Customizer) または hsts(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.HstsSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.HeaderSpec.hsts(Customizer) または hsts(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.permissionsPolicy()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.permissionsPolicy(Customizer) を使用してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.PermissionsPolicySpec.and()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.permissionsPolicy(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.referrerPolicy()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.referrerPolicy(Customizer) を使用してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.referrerPolicy(ReferrerPolicyServerHttpHeadersWriter.ReferrerPolicy)
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.referrerPolicy(Customizer) を使用してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.ReferrerPolicySpec.and()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.referrerPolicy(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.xssProtection()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.HeaderSpec.xssProtection(Customizer) または xssProtection(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.httpBasic()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.httpBasic(Customizer) または httpBasic(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HttpBasicSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.httpBasic(Customizer) または httpBasic(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HttpsRedirectSpec.and()
    ServerHttpSecurity.redirectToHttps(Customizer) を使用
    org.springframework.security.config.web.server.ServerHttpSecurity.logout()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.logout(Customizer) または logout(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.LogoutSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.logout(Customizer) または logout(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.oauth2Client()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.oauth2Client(Customizer) または oauth2Client(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.OAuth2ClientSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.oauth2Client(Customizer) または oauth2Client(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.oauth2Login()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.oauth2Login(Customizer) または oauth2Login(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.OAuth2LoginSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.oauth2Login(Customizer) または oauth2Login(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.oauth2ResourceServer()
    7.0 の取り外し用。代わりに ServerHttpSecurity.oauth2ResourceServer(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.OAuth2ResourceServerSpec.and()
    7.0 の取り外し用。代わりに ServerHttpSecurity.oauth2ResourceServer(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.OAuth2ResourceServerSpec.jwt()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.OAuth2ResourceServerSpec.jwt(Customizer) または jwt(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.OAuth2ResourceServerSpec.jwt(Customizer) または jwt(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.OAuth2ResourceServerSpec.opaqueToken()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.OAuth2ResourceServerSpec.opaqueToken(Customizer) または opaqueToken(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.OAuth2ResourceServerSpec.OpaqueTokenSpec.and()
    7.0 の取り外し用。代わりに ServerHttpSecurity.OAuth2ResourceServerSpec.opaqueToken(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.OidcLogoutSpec.and()
    org.springframework.security.config.web.server.ServerHttpSecurity.passwordManagement()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.passwordManagement(Customizer) または passwordManagement(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.PasswordManagementSpec.and()
    7.0 の取り外し用。代わりに ServerHttpSecurity.passwordManagement(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.redirectToHttps()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.redirectToHttps(Customizer) または redirectToHttps(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.requestCache()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.requestCache(Customizer) または requestCache(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.RequestCacheSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.requestCache(Customizer) または requestCache(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.x509()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.x509(Customizer) または x509(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.X509Spec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.x509(Customizer) または x509(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.ldap.server.ApacheDSContainer
    7.0 の取り外し用。ApacheDS 1.x はサポートされなくなり、それに代わる GA バージョンがないため、代わりに UnboundIdContainer を使用してください。
    org.springframework.security.oauth2.client.oidc.userinfo.OidcUserService.setAccessibleScopes(Set<String>)
    代わりに OidcUserService.setRetrieveUserInfo(Predicate) を使用してください
    org.springframework.security.oauth2.server.resource.authentication.JwtIssuerAuthenticationManagerResolver(String...)
    JwtIssuerAuthenticationManagerResolver.fromTrustedIssuers(String...) を使用
    org.springframework.security.oauth2.server.resource.authentication.JwtIssuerAuthenticationManagerResolver(Collection<String>)
    JwtIssuerAuthenticationManagerResolver.fromTrustedIssuers(Collection) を使用
    org.springframework.security.oauth2.server.resource.authentication.JwtIssuerReactiveAuthenticationManagerResolver(String...)
    JwtIssuerReactiveAuthenticationManagerResolver.fromTrustedIssuers(String...) を使用
    org.springframework.security.oauth2.server.resource.authentication.JwtIssuerReactiveAuthenticationManagerResolver(Collection<String>)
    JwtIssuerReactiveAuthenticationManagerResolver.fromTrustedIssuers(Collection) を使用
    org.springframework.security.saml2.provider.service.registration.RelyingPartyRegistration.Builder.assertingPartyDetails(Consumer<RelyingPartyRegistration.AssertingPartyDetails.Builder>)
    代わりに RelyingPartyRegistration.Builder.assertingPartyMetadata(java.util.function.Consumer<org.springframework.security.saml2.provider.service.registration.AssertingPartyMetadata.Builder<?>>) を使用してください
    org.springframework.security.saml2.provider.service.registration.RelyingPartyRegistration.withAssertingPartyDetails(RelyingPartyRegistration.AssertingPartyDetails)
    代わりに RelyingPartyRegistration.withAssertingPartyMetadata(org.springframework.security.saml2.provider.service.registration.AssertingPartyMetadata) を使用してください
    org.springframework.security.saml2.provider.service.registration.RelyingPartyRegistration.withRelyingPartyRegistration(RelyingPartyRegistration)
    代わりに RelyingPartyRegistration.mutate() を使用してください
    org.springframework.security.web.access.intercept.AuthorizationFilter.setShouldFilterAllDispatcherTypes(boolean)
    代わりに、DispatcherType へのアクセスを許可します。
     @Configuration
     @EnableWebSecurity
     public class SecurityConfig {
    
            @Bean
            public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
                    http
                            .authorizeHttpRequests((authorize) -> authorize
                                    .dispatcherTypeMatchers(DispatcherType.ERROR).permitAll()
                                    // ...
                            );
                    return http.build();
            }
     }
     
    org.springframework.security.web.savedrequest.SavedCookie(String, String, String, String, int, String, boolean, int)
    代わりに SavedCookie(String, String, String, int, String, boolean) を使用してください
    org.springframework.security.web.savedrequest.SavedCookie.getComment()
    org.springframework.security.web.savedrequest.SavedCookie.getVersion()
  • 非推奨のインターフェース
    インターフェース
    説明
    org.springframework.security.access.AccessDecisionManager
    代わりに AuthorizationManager を使用してください
    org.springframework.security.access.AccessDecisionVoter
    代わりに AuthorizationManager を使用してください
    org.springframework.security.access.AfterInvocationProvider
    AuthorizationManager で委譲を使用してください
    org.springframework.security.access.annotation.AnnotationMetadataExtractor
    非推奨のクラスでのみ使用されます。 `@Secured` メソッドの SecuredAuthorizationManager を検討してください。
    org.springframework.security.access.intercept.AfterInvocationManager
    AuthorizationManager で委譲を使用してください
    org.springframework.security.access.intercept.aspectj.AspectJCallback
    このクラスはパブリック API から削除されます。Spring Security のメソッドセキュリティサポートである `spring-security-aspects` を使用するか、Spring AOP アノテーションを使用する独自のクラスを作成してください。
    org.springframework.security.access.intercept.RunAsManager
    Spring Security では、認証が認可から分離されました。このクラスは、非推奨になったコンポーネントでのみ使用されます。Spring Security にはまだ同等の代替がありません。
    org.springframework.security.access.method.MethodSecurityMetadataSource
    代わりに <method-security> および <intercept-methods> に use-authorization-manager 属性を使用するか、アノテーションベースまたは AuthorizationManager ベースの認可を使用します。
    org.springframework.security.access.prepost.PostInvocationAttribute
    代わりに AuthorizationManagerAfterMethodInterceptor を使用してください
    org.springframework.security.access.prepost.PostInvocationAuthorizationAdvice
    代わりに AuthorizationManagerAfterMethodInterceptor を使用してください
    org.springframework.security.access.prepost.PreInvocationAttribute
    代わりに AuthorizationManagerBeforeMethodInterceptor を使用してください
    org.springframework.security.access.prepost.PreInvocationAuthorizationAdvice
    代わりに AuthorizationManagerBeforeMethodInterceptor を使用してください
    org.springframework.security.access.prepost.PrePostInvocationAttributeFactory
    AuthorizationManager で委譲を使用してください
    org.springframework.security.cas.web.authentication.ServiceAuthenticationDetails
    org.springframework.security.cas.authentication.ServiceAuthenticationDetails をご使用ください
    org.springframework.security.config.annotation.ObjectPostProcessor
    代わりに ObjectPostProcessor を使用してください
    org.springframework.security.messaging.access.intercept.MessageSecurityMetadataSource
    代わりに MessageMatcherDelegatingAuthorizationManager を使用してください
    org.springframework.security.web.header.writers.frameoptions.AllowFromStrategy
    ALLOW-FROM は廃止されたディレクティブであり、最新のブラウザーでは機能しなくなりました。代わりに、frame-ancestors ディレクティブで Content-Security-Policy を使用します。
    org.springframework.security.web.util.matcher.RequestVariablesExtractor
    RequestMatcher.matcher(HttpServletRequest) から RequestMatcher.MatchResult を使用する
  • 非推奨のクラス
    クラス
    説明
    org.springframework.security.access.annotation.Jsr250MethodSecurityMetadataSource
    代わりに Jsr250AuthorizationManager を使用してください
    org.springframework.security.access.annotation.Jsr250SecurityConfig
    代わりに AuthorizationManagerBeforeMethodInterceptor.jsr250() を使用してください
    org.springframework.security.access.annotation.Jsr250Voter
    代わりに Jsr250AuthorizationManager を使用してください
    org.springframework.security.access.annotation.SecuredAnnotationSecurityMetadataSource
    AuthorizationManagerBeforeMethodInterceptor.secured() を使用
    org.springframework.security.access.event.AbstractAuthorizationEvent
    認可イベントは移動しました。AuthorizationGrantedEvent と AuthorizationDeniedEvent を検討してください
    org.springframework.security.access.event.AuthenticationCredentialsNotFoundEvent
    認証は認可から分離されました。代わりに AbstractAuthenticationFailureEvent を検討してください。
    org.springframework.security.access.event.AuthorizationFailureEvent
    代わりに AuthorizationDeniedEvent を使用してください
    org.springframework.security.access.event.AuthorizedEvent
    代わりに AuthorizationGrantedEvent を使用してください
    org.springframework.security.access.event.LoggerListener
    ロギングが Spring Security コンポーネントに組み込まれるようになりました。さらにロギングが必要な場合は、独自の ApplicationListener の使用を検討してください
    org.springframework.security.access.event.PublicInvocationEvent
    非推奨のクラスでのみ使用されます。パブリック呼び出しを推測するために EventObject.getSource() を検討してください。
    org.springframework.security.access.expression.method.ExpressionBasedAnnotationAttributeFactory
    代わりに AuthorizationManager インターセプターを使用してください
    org.springframework.security.access.expression.method.ExpressionBasedPostInvocationAdvice
    代わりに AuthorizationManagerAfterMethodInterceptor を使用してください
    org.springframework.security.access.expression.method.ExpressionBasedPreInvocationAdvice
    代わりに AuthorizationManagerAfterMethodInterceptor を使用してください
    org.springframework.security.access.intercept.AbstractSecurityInterceptor
    代わりに、フィルターセキュリティには AuthorizationFilter を、メッセージングセキュリティには AuthorizationChannelInterceptor を、メソッドセキュリティには AuthorizationManagerBeforeMethodInterceptor と AuthorizationManagerAfterMethodInterceptor を使用してください。
    org.springframework.security.access.intercept.AfterInvocationProviderManager
    AuthorizationManager で委譲を使用してください
    org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor
    代わりに AuthorizationManagerBeforeMethodInterceptor と AuthorizationManagerAfterMethodInterceptor を使用してください
    org.springframework.security.access.intercept.aopalliance.MethodSecurityMetadataSourceAdvisor
    EnableMethodSecurity を使用するか、インターセプターを直接公開してください
    org.springframework.security.access.intercept.aspectj.AspectJMethodSecurityInterceptor
    このクラスはパブリック API から削除されます。Spring Security のメソッドセキュリティサポートである `spring-security-aspects` を使用するか、Spring AOP アノテーションを使用する独自のクラスを作成してください。
    org.springframework.security.access.intercept.aspectj.MethodInvocationAdapter
    このクラスはパブリック API から削除されます。その置換については、` spring-security-aspects` の `JoinPointMethodInvocation` を参照してください
    org.springframework.security.access.intercept.InterceptorStatusToken
    AuthorizationManager で委譲を使用してください
    org.springframework.security.access.intercept.MethodInvocationPrivilegeEvaluator
    代わりに AuthorizationManager を使用してください
    org.springframework.security.access.intercept.RunAsImplAuthenticationProvider
    Spring Security では、認証が認可から分離されました。このクラスは、非推奨になったコンポーネントでのみ使用されます。Spring Security にはまだ同等の代替がありません。
    org.springframework.security.access.intercept.RunAsManagerImpl
    Spring Security では、認証が認可から分離されました。このクラスは、非推奨になったコンポーネントでのみ使用されます。Spring Security にはまだ同等の代替がありません。
    org.springframework.security.access.intercept.RunAsUserToken
    Spring Security では、認証が認可から分離されました。このクラスは、非推奨になったコンポーネントでのみ使用されます。Spring Security にはまだ同等の代替がありません。
    org.springframework.security.access.method.AbstractFallbackMethodSecurityMetadataSource
    代わりに <method-security> および <intercept-methods> に use-authorization-manager 属性を使用するか、アノテーションベースまたは AuthorizationManager ベースの認可を使用します。
    org.springframework.security.access.method.AbstractMethodSecurityMetadataSource
    代わりに <method-security> および <intercept-methods> に use-authorization-manager 属性を使用するか、アノテーションベースまたは AuthorizationManager ベースの認可を使用します。
    org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource
    代わりに <method-security> および <intercept-methods> に use-authorization-manager 属性を使用するか、アノテーションベースまたは AuthorizationManager ベースの認可を使用します。
    org.springframework.security.access.method.MapBasedMethodSecurityMetadataSource
    代わりに <method-security> および <intercept-methods> に use-authorization-manager 属性を使用するか、アノテーションベースまたは AuthorizationManager ベースの認可を使用します。
    org.springframework.security.access.prepost.PostInvocationAdviceProvider
    代わりに AuthorizationManagerAfterMethodInterceptor を使用してください
    org.springframework.security.access.prepost.PreInvocationAuthorizationAdviceVoter
    代わりに AuthorizationManagerBeforeMethodInterceptor を使用してください
    org.springframework.security.access.prepost.PrePostAdviceReactiveMethodInterceptor
    AuthorizationManagerBeforeReactiveMethodInterceptor または AuthorizationManagerAfterReactiveMethodInterceptor を使用する
    org.springframework.security.access.prepost.PrePostAnnotationSecurityMetadataSource
    代わりに PreAuthorizeAuthorizationManager と PostAuthorizeAuthorizationManager を使用してください
    org.springframework.security.access.vote.AbstractAccessDecisionManager
    代わりに AuthorizationManager を使用してください
    org.springframework.security.access.vote.AbstractAclVoter
    非推奨クラスのみで使用されるようになりました。一般的に言えば、メモリ内 ACL は推奨されなくなったため、現時点では代替の予定はありません。
    org.springframework.security.access.vote.AffirmativeBased
    代わりに AuthorizationManager を使用してください
    org.springframework.security.access.vote.AuthenticatedVoter
    代わりに AuthorityAuthorizationManager を使用してください
    org.springframework.security.access.vote.ConsensusBased
    代わりに AuthorizationManager を使用してください
    org.springframework.security.access.vote.RoleHierarchyVoter
    代わりに AuthorityAuthorizationManager.setRoleHierarchy(org.springframework.security.access.hierarchicalroles.RoleHierarchy) を使用してください
    org.springframework.security.access.vote.RoleVoter
    代わりに AuthorityAuthorizationManager を使用してください
    org.springframework.security.access.vote.UnanimousBased
    代わりに AuthorizationManager を使用してください
    org.springframework.security.authorization.method.ExpressionAttributeAuthorizationDecision
    代わりに ExpressionAuthorizationDecision を使用してください
    org.springframework.security.authorization.method.PrePostTemplateDefaults
    代わりに AnnotationTemplateExpressionDefaults を使用してください
    org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration
    代わりに PrePostMethodSecurityConfiguration、SecuredMethodSecurityConfiguration、または Jsr250MethodSecurityConfiguration を使用してください
    org.springframework.security.config.annotation.web.configurers.AbstractInterceptUrlConfigurer
    代わりに AuthorizeHttpRequestsConfigurer を使用してください
    org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer
    代わりに AuthorizeHttpRequestsConfigurer を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.HpkpConfig
    詳細なコンテキストについては、証明書と公開鍵ピンニングを参照してください
    org.springframework.security.config.annotation.web.configurers.UrlAuthorizationConfigurer
    代わりに AuthorizeHttpRequestsConfigurer を使用してください
    org.springframework.security.config.annotation.web.messaging.MessageSecurityMetadataSourceRegistry
    代わりに MessageMatcherDelegatingAuthorizationManager を使用してください
    org.springframework.security.config.annotation.web.servlet.configuration.WebMvcSecurityConfiguration
    これは、SpringWebMvcImportSelector を使用して内部的に適用されます
    org.springframework.security.config.annotation.web.socket.AbstractSecurityWebSocketMessageBrokerConfigurer
    代わりに EnableWebSocketSecurity を使用してください
    org.springframework.security.config.http.FilterInvocationSecurityMetadataSourceParser
    代わりに `use-authorization-manager` プロパティを使用してください
    org.springframework.security.config.method.GlobalMethodSecurityBeanDefinitionParser
    代わりに MethodSecurityBeanDefinitionParser を使用してください
    org.springframework.security.config.method.MethodSecurityMetadataSourceBeanDefinitionParser
    <intercept-methods>、<method-security>、または @EnableMethodSecurity を使用
    org.springframework.security.crypto.codec.Base64
    java.util.Base64 を使用
    org.springframework.security.crypto.password.LdapShaPasswordEncoder
    ダイジェストベースのパスワードエンコーディングは安全とは見なされません。代わりに、BCryptPasswordEncoder、Pbkdf2PasswordEncoder、SCryptPasswordEncoder などの適応型一方向関数を使用してください。パスワードのアップグレードをサポートする DelegatingPasswordEncoder を使用することをお勧めします。このサポートを削除する予定はありません。これはレガシー実装であり、それを使用することは安全でないと見なされることを示すために非推奨です。
    org.springframework.security.crypto.password.Md4PasswordEncoder
    ダイジェストベースのパスワードエンコーディングは安全とは見なされません。代わりに、BCryptPasswordEncoder、Pbkdf2PasswordEncoder、SCryptPasswordEncoder などの適応型一方向関数を使用してください。パスワードのアップグレードをサポートする DelegatingPasswordEncoder を使用することをお勧めします。このサポートを削除する予定はありません。これはレガシー実装であり、それを使用することは安全でないと見なされることを示すために非推奨です。
    org.springframework.security.crypto.password.MessageDigestPasswordEncoder
    ダイジェストベースのパスワードエンコーディングは安全とは見なされません。代わりに、BCryptPasswordEncoder、Pbkdf2PasswordEncoder、SCryptPasswordEncoder などの適応型一方向関数を使用してください。パスワードのアップグレードをサポートする DelegatingPasswordEncoder を使用することをお勧めします。このサポートを削除する予定はありません。これはレガシー実装であり、それを使用することは安全でないと見なされることを示すために非推奨です。
    org.springframework.security.crypto.password.NoOpPasswordEncoder
    この PasswordEncoder は安全ではありません。代わりに、BCryptPasswordEncoder、Pbkdf2PasswordEncoder、SCryptPasswordEncoder などの適応型一方向関数を使用してください。パスワードのアップグレードをサポートする DelegatingPasswordEncoder をさらに使用してください。このサポートを削除する予定はありません。これはレガシー実装であることを示すために非推奨になり、使用は安全ではないと見なされます。
    org.springframework.security.crypto.password.StandardPasswordEncoder
    ダイジェストベースのパスワードエンコーディングは安全とは見なされません。代わりに、BCryptPasswordEncoder、Pbkdf2PasswordEncoder、SCryptPasswordEncoder などの適応型一方向関数を使用してください。パスワードのアップグレードをサポートする DelegatingPasswordEncoder を使用することをお勧めします。このサポートを削除する予定はありません。これはレガシー実装であり、それを使用することは安全でないと見なされることを示すために非推奨です。
    org.springframework.security.ldap.server.ApacheDSContainer
    7.0 の取り外し用。ApacheDS 1.x はサポートされなくなり、それに代わる GA バージョンがないため、代わりに UnboundIdContainer を使用してください。
    org.springframework.security.messaging.access.expression.ExpressionBasedMessageSecurityMetadataSourceFactory
    代わりに MessageMatcherDelegatingAuthorizationManager を使用してください
    org.springframework.security.messaging.access.expression.MessageExpressionVoter
    代わりに MessageMatcherDelegatingAuthorizationManager を使用してください
    org.springframework.security.messaging.access.intercept.ChannelSecurityInterceptor
    代わりに AuthorizationChannelInterceptor を使用してください
    org.springframework.security.messaging.access.intercept.DefaultMessageSecurityMetadataSource
    代わりに MessageMatcherDelegatingAuthorizationManager を使用してください
    org.springframework.security.oauth2.client.endpoint.DefaultAuthorizationCodeTokenResponseClient
    代わりに RestClientAuthorizationCodeTokenResponseClient を使用してください
    org.springframework.security.oauth2.client.endpoint.DefaultClientCredentialsTokenResponseClient
    代わりに RestClientClientCredentialsTokenResponseClient を使用してください
    org.springframework.security.oauth2.client.endpoint.DefaultJwtBearerTokenResponseClient
    代わりに RestClientJwtBearerTokenResponseClient を使用してください
    org.springframework.security.oauth2.client.endpoint.DefaultPasswordTokenResponseClient
    最新の OAuth 2.0 Security Best Current Practice では、Resource Owner Password Credentials グラントの使用が禁止されています。リファレンス OAuth 2.0 セキュリティのベストカレントプラクティスを参照してください。
    org.springframework.security.oauth2.client.endpoint.DefaultRefreshTokenTokenResponseClient
    代わりに RestClientRefreshTokenTokenResponseClient を使用してください
    org.springframework.security.oauth2.client.endpoint.DefaultTokenExchangeTokenResponseClient
    代わりに RestClientRefreshTokenTokenResponseClient を使用してください
    org.springframework.security.oauth2.client.endpoint.JwtBearerGrantRequestEntityConverter
    代わりに DefaultOAuth2TokenRequestParametersConverter を使用してください
    org.springframework.security.oauth2.client.endpoint.OAuth2AuthorizationCodeGrantRequestEntityConverter
    代わりに DefaultOAuth2TokenRequestParametersConverter を使用してください
    org.springframework.security.oauth2.client.endpoint.OAuth2ClientCredentialsGrantRequestEntityConverter
    代わりに DefaultOAuth2TokenRequestParametersConverter を使用してください
    org.springframework.security.oauth2.client.endpoint.OAuth2PasswordGrantRequest
    最新の OAuth 2.0 Security Best Current Practice では、Resource Owner Password Credentials グラントの使用が禁止されています。リファレンス OAuth 2.0 セキュリティのベストカレントプラクティスを参照してください。
    org.springframework.security.oauth2.client.endpoint.OAuth2PasswordGrantRequestEntityConverter
    代わりに DefaultOAuth2TokenRequestParametersConverter を使用してください
    org.springframework.security.oauth2.client.endpoint.OAuth2RefreshTokenGrantRequestEntityConverter
    代わりに DefaultOAuth2TokenRequestParametersConverter を使用してください
    org.springframework.security.oauth2.client.endpoint.TokenExchangeGrantRequestEntityConverter
    代わりに DefaultOAuth2TokenRequestParametersConverter を使用してください
    org.springframework.security.oauth2.client.endpoint.WebClientReactivePasswordTokenResponseClient
    最新の OAuth 2.0 Security Best Current Practice では、Resource Owner Password Credentials グラントの使用が禁止されています。リファレンス OAuth 2.0 セキュリティのベストカレントプラクティスを参照してください。
    org.springframework.security.oauth2.client.PasswordOAuth2AuthorizedClientProvider
    最新の OAuth 2.0 Security Best Current Practice では、Resource Owner Password Credentials グラントの使用が禁止されています。リファレンス OAuth 2.0 セキュリティのベストカレントプラクティスを参照してください。
    org.springframework.security.oauth2.client.PasswordReactiveOAuth2AuthorizedClientProvider
    最新の OAuth 2.0 Security Best Current Practice では、Resource Owner Password Credentials グラントの使用が禁止されています。リファレンス OAuth 2.0 セキュリティのベストカレントプラクティスを参照してください。
    org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken
    BearerTokenAuthenticationToken をご利用ください
    org.springframework.security.oauth2.server.resource.introspection.NimbusOpaqueTokenIntrospector
    代わりに SpringOpaqueTokenIntrospector を使用してください
    org.springframework.security.oauth2.server.resource.introspection.NimbusReactiveOpaqueTokenIntrospector
    代わりに SpringReactiveOpaqueTokenIntrospector を使用してください
    org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationFilter
    代わりに BearerTokenAuthenticationFilter を使用してください
    org.springframework.security.rsocket.metadata.BasicAuthenticationDecoder
    基本認証は標準に発展しませんでした。代わりに単純認証を使用してください。
    org.springframework.security.rsocket.metadata.BasicAuthenticationEncoder
    基本認証は標準に発展しませんでした。SimpleAuthenticationEncoder を使用
    org.springframework.security.saml2.provider.service.metadata.RequestMatcherMetadataResponseResolver
    RequestMatcherMetadataResponseResolver をご利用ください
    org.springframework.security.saml2.provider.service.registration.OpenSamlRelyingPartyRegistration
    このクラスは、EntityDescriptor を OpenSamlAssertingPartyDetails に送信するために必要ではなくなりました。代わりに、次の操作を実行します。
            if (registration instanceof OpenSamlRelyingPartyRegistration openSamlRegistration) {
                EntityDescriptor descriptor = openSamlRegistration.getAssertingPartyDetails.getEntityDescriptor();
            }
     
    代わりに以下を実行してください:
            if (registration.getAssertingPartyMetadata() instanceof openSamlAssertingPartyDetails) {
                EntityDescriptor descriptor = openSamlAssertingPartyDetails.getEntityDescriptor();
            }
     
    org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator
    代わりに AuthorizationManagerWebInvocationPrivilegeEvaluator を使用してください
    org.springframework.security.web.access.expression.WebExpressionVoter
    代わりに WebExpressionAuthorizationManager を使用してください
    org.springframework.security.web.access.intercept.FilterSecurityInterceptor
    代わりに AuthorizationFilter を使用してください
    org.springframework.security.web.bind.support.AuthenticationPrincipalArgumentResolver
    代わりに AuthenticationPrincipalArgumentResolver を使用してください。
    org.springframework.security.web.context.HttpRequestResponseHolder
    SecurityContextRepository.loadDeferredContext(HttpServletRequest) を使用
    org.springframework.security.web.context.SaveContextOnUpdateOrErrorResponseWrapper
    代わりに SecurityContextRepository.loadDeferredContext(HttpServletRequest) を使用してください。
    org.springframework.security.web.context.SecurityContextPersistenceFilter
    SecurityContextHolderFilter を使用
    org.springframework.security.web.csrf.LazyCsrfTokenRepository
    DeferredCsrfToken を返す CsrfTokenRepository.loadDeferredToken(HttpServletRequest, HttpServletResponse) を使用する
    org.springframework.security.web.header.writers.frameoptions.AbstractRequestParameterAllowFromStrategy
    ALLOW-FROM は廃止されたディレクティブであり、最新のブラウザーでは機能しなくなりました。代わりに、frame-ancestors ディレクティブで Content-Security-Policy を使用します。
    org.springframework.security.web.header.writers.frameoptions.RegExpAllowFromStrategy
    ALLOW-FROM は廃止されたディレクティブであり、最新のブラウザーでは機能しなくなりました。代わりに、frame-ancestors ディレクティブで Content-Security-Policy を使用します。
    org.springframework.security.web.header.writers.frameoptions.StaticAllowFromStrategy
    ALLOW-FROM は廃止されたディレクティブであり、最新のブラウザーでは機能しなくなりました。代わりに、frame-ancestors ディレクティブで Content-Security-Policy を使用します。
    org.springframework.security.web.header.writers.frameoptions.WhiteListedAllowFromStrategy
    ALLOW-FROM は廃止されたディレクティブであり、最新のブラウザーでは機能しなくなりました。代わりに、frame-ancestors ディレクティブで Content-Security-Policy を使用します。
    org.springframework.security.web.header.writers.HpkpHeaderWriter
    詳細なコンテキストについては、証明書と公開鍵ピンニングを参照してください
    org.springframework.security.web.server.ServerFormLoginAuthenticationConverter
    代わりに ServerFormLoginAuthenticationConverter を使用してください。
    org.springframework.security.web.server.ServerHttpBasicAuthenticationConverter
    代わりに ServerHttpBasicAuthenticationConverter を使用してください。
  • 非推奨のアノテーションインターフェース
    アノテーションインターフェース
    説明
    org.springframework.security.access.method.P
    @{ コード org.springframework.security.core.parameters.P} を使用してください
    org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity
    代わりに EnableMethodSecurity を使用してください
    org.springframework.security.config.annotation.web.servlet.configuration.EnableWebMvcSecurity
    代わりに EnableWebSecurity を使用すると、Spring MVC 関連のセキュリティアイテムが自動的に追加されます。
    org.springframework.security.web.bind.annotation.AuthenticationPrincipal
    代わりに AuthenticationPrincipal を使用してください。
  • 非推奨のフィールド
    フィールド
    説明
    org.springframework.security.messaging.util.matcher.AbstractMessageMatcherComposite.LOGGER
    5.4 以降、AbstractMessageMatcherComposite.logger を推奨
    org.springframework.security.oauth2.core.AuthorizationGrantType.PASSWORD
    最新の OAuth 2.0 Security Best Current Practice では、Resource Owner Password Credentials グラントの使用が禁止されています。リファレンス OAuth 2.0 セキュリティのベストカレントプラクティスを参照してください。
    org.springframework.security.rsocket.metadata.BearerTokenMetadata.BEARER_AUTHENTICATION_MIME_TYPE
    基本は標準に進化しませんでした。代わりに、単純認証 MimeTypeUtils.parseMimeType(WellKnownMimeType.MESSAGE_RSOCKET_AUTHENTICATION.getString())を使用してください
    org.springframework.security.rsocket.metadata.UsernamePasswordMetadata.BASIC_AUTHENTICATION_MIME_TYPE
    基本は標準に進化しませんでした。代わりに、単純認証 MimeTypeUtils.parseMimeType(WellKnownMimeType.MESSAGE_RSOCKET_AUTHENTICATION.getString())を使用してください
  • 非推奨のメソッド
    メソッド
    説明
    org.springframework.security.access.hierarchicalroles.RoleHierarchyImpl.setHierarchy(String)
    代わりに RoleHierarchyImpl.fromHierarchy(java.lang.String) を使用してください
    org.springframework.security.authentication.DefaultAuthenticationEventPublisher.setAdditionalExceptionMappings(Properties)
    DefaultAuthenticationEventPublisher.setAdditionalExceptionMappings(Map) を使用
    org.springframework.security.authorization.AuthorityAuthorizationManager.check(Supplier<Authentication>, T)
    代わりに AuthorizationManager.authorize(Supplier, Object) を使用してください
    org.springframework.security.authorization.AuthorizationEventPublisher.publishAuthorizationEvent(Supplier<Authentication>, T, AuthorizationDecision)
    代わりに AuthorizationEventPublisher.publishAuthorizationEvent(Supplier, Object, AuthorizationResult) を使用してください
    org.springframework.security.authorization.AuthorizationManager.check(Supplier<Authentication>, T)
    代わりに AuthorizationManager.authorize(Supplier, Object) を使用してください
    org.springframework.security.authorization.AuthorizationObservationContext.getDecision()
    代わりに AuthorizationObservationContext.getAuthorizationResult() を使用してください
    org.springframework.security.authorization.AuthorizationObservationContext.setDecision(AuthorizationDecision)
    代わりに AuthorizationObservationContext.setAuthorizationResult(AuthorizationResult) を使用してください
    org.springframework.security.authorization.event.AuthorizationEvent.getAuthorizationDecision()
    AuthorizationEvent.getAuthorizationResult() を使用してください
    org.springframework.security.authorization.method.AuthorizationAdvisorProxyFactory.setAdvisors(Collection<AuthorizationAdvisor>)
    代わりに AuthorizationAdvisorProxyFactory.addAdvisor(org.springframework.security.authorization.method.AuthorizationAdvisor) を使用してください
    org.springframework.security.authorization.method.AuthorizationAdvisorProxyFactory.setAdvisors(AuthorizationAdvisor...)
    代わりに AuthorizationAdvisorProxyFactory.addAdvisor(org.springframework.security.authorization.method.AuthorizationAdvisor) を使用してください
    org.springframework.security.authorization.method.Jsr250AuthorizationManager.check(Supplier<Authentication>, MethodInvocation)
    代わりに AuthorizationManager.authorize(Supplier, Object) を使用してください
    org.springframework.security.authorization.method.PostAuthorizeAuthorizationManager.setTemplateDefaults(PrePostTemplateDefaults)
    代わりに PostAuthorizeAuthorizationManager.setTemplateDefaults(AnnotationTemplateExpressionDefaults) を使用してください
    org.springframework.security.authorization.method.PostFilterAuthorizationMethodInterceptor.setTemplateDefaults(PrePostTemplateDefaults)
    代わりに AnnotationTemplateExpressionDefaults を使用してください
    org.springframework.security.authorization.method.PreAuthorizeAuthorizationManager.setTemplateDefaults(PrePostTemplateDefaults)
    代わりに PreAuthorizeAuthorizationManager.setTemplateDefaults(AnnotationTemplateExpressionDefaults) を使用してください
    org.springframework.security.authorization.method.PreFilterAuthorizationMethodInterceptor.setTemplateDefaults(PrePostTemplateDefaults)
    代わりに PreFilterAuthorizationMethodInterceptor.setTemplateDefaults(AnnotationTemplateExpressionDefaults) を使用してください
    org.springframework.security.authorization.method.SecuredAuthorizationManager.check(Supplier<Authentication>, MethodInvocation)
    代わりに AuthorizationManager.authorize(Supplier, Object) を使用してください
    org.springframework.security.authorization.ObservationAuthorizationManager.check(Supplier<Authentication>, T)
    代わりに AuthorizationManager.authorize(Supplier, Object) を使用してください
    org.springframework.security.authorization.ObservationReactiveAuthorizationManager.check(Mono<Authentication>, T)
    代わりに ReactiveAuthorizationManager.authorize(Mono, Object) を使用してください
    org.springframework.security.authorization.ReactiveAuthorizationManager.check(Mono<Authentication>, T)
    代わりに ReactiveAuthorizationManager.authorize(Mono, Object) を使用してください
    org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder.apply(C)
    7.0 の取り外し用。代わりに AbstractConfiguredSecurityBuilder.with(SecurityConfigurerAdapter, Customizer) を使用してください。
    org.springframework.security.config.annotation.authentication.configurers.ldap.LdapAuthenticationProviderConfigurer.withObjectPostProcessor(ObjectPostProcessor<?>)
    org.springframework.security.config.annotation.authentication.configurers.userdetails.AbstractDaoAuthenticationConfigurer.withObjectPostProcessor(ObjectPostProcessor<?>)
    org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration.setObjectPostProcessor(ObjectPostProcessor<Object>)
    org.springframework.security.config.annotation.rsocket.RSocketSecurity.basicAuthentication(Customizer<RSocketSecurity.BasicAuthenticationSpec>)
    RSocketSecurity.simpleAuthentication(Customizer) を使用
    org.springframework.security.config.annotation.SecurityConfigurerAdapter.addObjectPostProcessor(ObjectPostProcessor<?>)
    org.springframework.security.config.annotation.SecurityConfigurerAdapter.and()
    7.0 の取り外し用。代わりにラムダベースの構成を使用してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.anonymous()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.anonymous(Customizer) または anonymous(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.authorizeHttpRequests()
    7.0 の取り外し用。代わりに HttpSecurity.authorizeHttpRequests(Customizer) を使用してください
    org.springframework.security.config.annotation.web.builders.HttpSecurity.authorizeRequests()
    7.0 の取り外し用。代わりに HttpSecurity.authorizeHttpRequests(Customizer) を使用してください
    org.springframework.security.config.annotation.web.builders.HttpSecurity.authorizeRequests(Customizer<ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry>)
    7.0 の取り外し用。代わりに HttpSecurity.authorizeHttpRequests(Customizer) を使用してください
    org.springframework.security.config.annotation.web.builders.HttpSecurity.cors()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.cors(Customizer) または cors(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.csrf()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.csrf(Customizer) または csrf(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.exceptionHandling()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.exceptionHandling(Customizer) または exceptionHandling(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.formLogin()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.formLogin(Customizer) または formLogin(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.headers()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.headers(Customizer) または headers(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.httpBasic()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.httpBasic(Customizer) または httpBasic(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.jee()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.jee(Customizer) または jee(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.logout()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.logout(Customizer) または logout(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.oauth2Client()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.oauth2Client(Customizer) または oauth2Client(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.oauth2Login()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.oauth2Login(Customizer) または oauth2Login(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.oauth2ResourceServer()
    7.0 の取り外し用。代わりに HttpSecurity.oauth2ResourceServer(Customizer) を使用してください
    org.springframework.security.config.annotation.web.builders.HttpSecurity.portMapper()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.portMapper(Customizer) または portMapper(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.rememberMe()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.rememberMe(Customizer) または rememberMe(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.requestCache()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.requestCache(Customizer) または requestCache(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.RequestMatcherConfigurer.and()
    代わりにラムダベースの構成を使用してください。例:
     @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();
         }
    
     }
     
    org.springframework.security.config.annotation.web.builders.HttpSecurity.requiresChannel()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.requiresChannel(Customizer) または requiresChannel(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.saml2Login()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.saml2Login(Customizer) または saml2Login(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.saml2Logout()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.saml2Logout(Customizer) または saml2Logout(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.saml2Metadata()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.saml2Metadata(Customizer) または saml2Metadata(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.securityContext()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.securityContext(Customizer) または securityContext(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.securityMatchers()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.securityMatchers(Customizer) または securityMatchers(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.servletApi()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.servletApi(Customizer) または servletApi(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.sessionManagement()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.sessionManagement(Customizer) または sessionManagement(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.builders.HttpSecurity.x509()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HttpSecurity.x509(Customizer) または x509(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer.withObjectPostProcessor(ObjectPostProcessor<?>)
    org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry.and()
    7.0 の取り外し用。代わりにラムダベースの構成を使用してください。
    org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry.shouldFilterAllDispatcherTypes(boolean)
    代わりに、DispatcherType へのアクセスを許可します。
     @Configuration
     @EnableWebSecurity
     public class SecurityConfig {
    
            @Bean
            public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
                    http
                            .authorizeHttpRequests((authorize) -> authorize
                                    .dispatcherTypeMatchers(DispatcherType.ERROR).permitAll()
                                    // ...
                            );
                    return http.build();
            }
     }
     
    org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry.withObjectPostProcessor(ObjectPostProcessor<?>)
    org.springframework.security.config.annotation.web.configurers.ChannelSecurityConfigurer.ChannelRequestMatcherRegistry.and()
    7.0 の取り外し用。代わりに HttpSecurity.requiresChannel(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.ChannelSecurityConfigurer.ChannelRequestMatcherRegistry.withObjectPostProcessor(ObjectPostProcessor<?>)
    org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry.withObjectPostProcessor(ObjectPostProcessor<?>)
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.cacheControl()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.cacheControl(Customizer) または cacheControl(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.CacheControlConfig.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.cacheControl(Customizer) または cacheControl(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.contentSecurityPolicy(String)
    7.0 の取り外し用。代わりに HeadersConfigurer.contentSecurityPolicy(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.ContentSecurityPolicyConfig.and()
    7.0 の取り外し用。代わりに HeadersConfigurer.contentSecurityPolicy(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.contentTypeOptions()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.contentTypeOptions(Customizer) または contentTypeOptions(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.ContentTypeOptionsConfig.and()
    7.0 の取り外し用。代わりに HeadersConfigurer.contentTypeOptions(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.crossOriginEmbedderPolicy()
    7.0 の取り外し用。代わりに HeadersConfigurer.crossOriginEmbedderPolicy(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.CrossOriginEmbedderPolicyConfig.and()
    7.0 の取り外し用。代わりに HeadersConfigurer.crossOriginEmbedderPolicy(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.crossOriginOpenerPolicy()
    7.0 の取り外し用。代わりに HeadersConfigurer.crossOriginOpenerPolicy(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.CrossOriginOpenerPolicyConfig.and()
    7.0 の取り外し用。代わりに HeadersConfigurer.crossOriginOpenerPolicy(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.crossOriginResourcePolicy()
    7.0 の取り外し用。代わりに HeadersConfigurer.crossOriginResourcePolicy(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.CrossOriginResourcePolicyConfig.and()
    7.0 の取り外し用。代わりに HeadersConfigurer.crossOriginResourcePolicy(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.featurePolicy(String)
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.permissionsPolicy(Customizer) または permissionsPolicy(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.frameOptions()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.frameOptions(Customizer) または frameOptions(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.FrameOptionsConfig.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.frameOptions(Customizer) または frameOptions(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.HstsConfig.and()
    7.0 の取り外し用。代わりに HeadersConfigurer.httpStrictTransportSecurity(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.httpPublicKeyPinning()
    詳細なコンテキストについては、証明書と公開鍵ピンニングを参照してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.httpPublicKeyPinning(Customizer<HeadersConfigurer.HpkpConfig>)
    詳細なコンテキストについては、証明書と公開鍵ピンニングを参照してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.httpStrictTransportSecurity()
    7.0 の取り外し用。代わりに HeadersConfigurer.httpStrictTransportSecurity(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.permissionsPolicy()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.permissionsPolicyHeader(Customizer) または permissionsPolicy(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.permissionsPolicy(Customizer<HeadersConfigurer.PermissionsPolicyConfig>)
    7.0 の取り外し用。代わりに HeadersConfigurer.permissionsPolicyHeader(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.PermissionsPolicyConfig.and()
    7.0 の取り外し用。代わりに HeadersConfigurer.permissionsPolicy(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.referrerPolicy()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.referrerPolicy(Customizer) または referrerPolicy(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.referrerPolicy(ReferrerPolicyHeaderWriter.ReferrerPolicy)
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.referrerPolicy(Customizer) または referrerPolicy(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.ReferrerPolicyConfig.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.referrerPolicy(Customizer) または referrerPolicy(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.xssProtection()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.xssProtection(Customizer) または xssProtection(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.XXssConfig.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、HeadersConfigurer.xssProtection(Customizer) または xssProtection(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2ClientConfigurer.authorizationCodeGrant()
    7.0 の取り外し用。代わりに OAuth2ClientConfigurer.authorizationCodeGrant(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2ClientConfigurer.AuthorizationCodeGrantConfigurer.and()
    7.0 の取り外し用。代わりに OAuth2ClientConfigurer.authorizationCodeGrant(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.authorizationEndpoint()
    7.0 の取り外し用。代わりに OAuth2LoginConfigurer.authorizationEndpoint(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.AuthorizationEndpointConfig.and()
    7.0 の取り外し用。代わりに OAuth2LoginConfigurer.authorizationEndpoint(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.redirectionEndpoint()
    7.0 の取り外し用。代わりに OAuth2LoginConfigurer.redirectionEndpoint(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.RedirectionEndpointConfig.and()
    7.0 の取り外し用。代わりに OAuth2LoginConfigurer.redirectionEndpoint(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.tokenEndpoint()
    7.0 の取り外し用。デフォルトをそのまま使用するには、OAuth2LoginConfigurer.tokenEndpoint(Customizer) または tokenEndpoint(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.TokenEndpointConfig.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、OAuth2LoginConfigurer.tokenEndpoint(Customizer) または tokenEndpoint(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.userInfoEndpoint()
    7.0 の取り外し用。デフォルトをそのまま使用するには、OAuth2LoginConfigurer.userInfoEndpoint(Customizer) または userInfoEndpoint(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.UserInfoEndpointConfig.and()
    7.0 の取り外し用。代わりに OAuth2LoginConfigurer.userInfoEndpoint(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.oauth2.client.OidcLogoutConfigurer.and()
    org.springframework.security.config.annotation.web.configurers.oauth2.server.resource.OAuth2ResourceServerConfigurer.jwt()
    7.0 の取り外し用。デフォルトをそのまま使用するには、OAuth2ResourceServerConfigurer.jwt(Customizer) または jwt(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.oauth2.server.resource.OAuth2ResourceServerConfigurer.JwtConfigurer.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、OAuth2ResourceServerConfigurer.jwt(Customizer) または jwt(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.oauth2.server.resource.OAuth2ResourceServerConfigurer.opaqueToken()
    7.0 の取り外し用。デフォルトをそのまま使用するには、OAuth2ResourceServerConfigurer.opaqueToken(Customizer) または opaqueToken(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.saml2.Saml2LoginConfigurer.authenticationRequestUri(String)
    代わりに Saml2LoginConfigurer.authenticationRequestUriQuery(java.lang.String) を使用してください
    org.springframework.security.config.annotation.web.configurers.saml2.Saml2LogoutConfigurer.logoutRequest()
    7.0 の取り外し用。デフォルトをそのまま使用するには、Saml2LogoutConfigurer.logoutRequest(Customizer) または logoutRequest(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.saml2.Saml2LogoutConfigurer.LogoutRequestConfigurer.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、Saml2LogoutConfigurer.logoutRequest(Customizer) または logoutRequest(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.saml2.Saml2LogoutConfigurer.logoutResponse()
    7.0 の取り外し用。デフォルトをそのまま使用するには、Saml2LogoutConfigurer.logoutResponse(Customizer) または logoutResponse(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.saml2.Saml2LogoutConfigurer.LogoutResponseConfigurer.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、Saml2LogoutConfigurer.logoutResponse(Customizer) または logoutResponse(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.annotation.web.configurers.SessionManagementConfigurer.ConcurrencyControlConfigurer.and()
    7.0 の取り外し用。代わりに SessionManagementConfigurer.sessionConcurrency(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.UrlAuthorizationConfigurer.withObjectPostProcessor(ObjectPostProcessor<?>)
    org.springframework.security.config.annotation.web.socket.AbstractSecurityWebSocketMessageBrokerConfigurer.setMessageExpessionHandler(List<SecurityExpressionHandler<Message<Object>>>)
    org.springframework.security.config.web.server.ServerHttpSecurity.anonymous()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.anonymous(Customizer) または anonymous(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.AnonymousSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.anonymous(Customizer) または anonymous(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.authorizeExchange()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.authorizeExchange(Customizer) または authorizeExchange(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.AuthorizeExchangeSpec.and()
    7.0 の取り外し用。代わりに ServerHttpSecurity.authorizeExchange(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.cors()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.cors(Customizer) または cors(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.CorsSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.cors(Customizer) または cors(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.csrf()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.csrf(Customizer) または csrf(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.CsrfSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.csrf(Customizer) または csrf(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.exceptionHandling()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.exceptionHandling(Customizer) または exceptionHandling(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.ExceptionHandlingSpec.and()
    7.0 の取り外し用。代わりに ServerHttpSecurity.exceptionHandling(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.formLogin()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.formLogin(Customizer) または formLogin(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.FormLoginSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.formLogin(Customizer) または formLogin(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.headers()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.headers(Customizer) または headers(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.headers(Customizer) または headers(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.cache()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.HeaderSpec.cache(Customizer) または cache(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.contentSecurityPolicy(String)
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.contentSecurityPolicy(Customizer) を使用してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.ContentSecurityPolicySpec.and()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.contentSecurityPolicy(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.contentTypeOptions()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.contentTypeOptions(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.crossOriginEmbedderPolicy()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.crossOriginEmbedderPolicy(Customizer) を使用してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.CrossOriginEmbedderPolicySpec.and()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.crossOriginEmbedderPolicy(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.crossOriginOpenerPolicy()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.crossOriginOpenerPolicy(Customizer) を使用してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.CrossOriginOpenerPolicySpec.and()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.crossOriginOpenerPolicy(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.crossOriginResourcePolicy()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.crossOriginResourcePolicy(Customizer) を使用してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.CrossOriginResourcePolicySpec.and()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.crossOriginResourcePolicy(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.featurePolicy(String)
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.permissionsPolicy(Customizer) を使用してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.FeaturePolicySpec.and()
    7.0 の取り外し用。代わりに #featurePolicy(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.frameOptions()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.HeaderSpec.frameOptions(Customizer) または frameOptions(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.hsts()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.HeaderSpec.hsts(Customizer) または hsts(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.HstsSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.HeaderSpec.hsts(Customizer) または hsts(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.permissionsPolicy()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.permissionsPolicy(Customizer) を使用してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.PermissionsPolicySpec.and()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.permissionsPolicy(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.referrerPolicy()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.referrerPolicy(Customizer) を使用してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.referrerPolicy(ReferrerPolicyServerHttpHeadersWriter.ReferrerPolicy)
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.referrerPolicy(Customizer) を使用してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.ReferrerPolicySpec.and()
    7.0 の取り外し用。代わりに ServerHttpSecurity.HeaderSpec.referrerPolicy(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.xssProtection()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.HeaderSpec.xssProtection(Customizer) または xssProtection(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.httpBasic()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.httpBasic(Customizer) または httpBasic(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HttpBasicSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.httpBasic(Customizer) または httpBasic(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.HttpsRedirectSpec.and()
    ServerHttpSecurity.redirectToHttps(Customizer) を使用
    org.springframework.security.config.web.server.ServerHttpSecurity.logout()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.logout(Customizer) または logout(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.LogoutSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.logout(Customizer) または logout(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.oauth2Client()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.oauth2Client(Customizer) または oauth2Client(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.OAuth2ClientSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.oauth2Client(Customizer) または oauth2Client(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.oauth2Login()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.oauth2Login(Customizer) または oauth2Login(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.OAuth2LoginSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.oauth2Login(Customizer) または oauth2Login(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.oauth2ResourceServer()
    7.0 の取り外し用。代わりに ServerHttpSecurity.oauth2ResourceServer(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.OAuth2ResourceServerSpec.and()
    7.0 の取り外し用。代わりに ServerHttpSecurity.oauth2ResourceServer(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.OAuth2ResourceServerSpec.jwt()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.OAuth2ResourceServerSpec.jwt(Customizer) または jwt(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.OAuth2ResourceServerSpec.jwt(Customizer) または jwt(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.OAuth2ResourceServerSpec.opaqueToken()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.OAuth2ResourceServerSpec.opaqueToken(Customizer) または opaqueToken(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.OAuth2ResourceServerSpec.OpaqueTokenSpec.and()
    7.0 の取り外し用。代わりに ServerHttpSecurity.OAuth2ResourceServerSpec.opaqueToken(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.OidcLogoutSpec.and()
    org.springframework.security.config.web.server.ServerHttpSecurity.passwordManagement()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.passwordManagement(Customizer) または passwordManagement(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.PasswordManagementSpec.and()
    7.0 の取り外し用。代わりに ServerHttpSecurity.passwordManagement(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.redirectToHttps()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.redirectToHttps(Customizer) または redirectToHttps(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.requestCache()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.requestCache(Customizer) または requestCache(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.RequestCacheSpec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.requestCache(Customizer) または requestCache(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.x509()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.x509(Customizer) または x509(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.config.web.server.ServerHttpSecurity.X509Spec.and()
    7.0 の取り外し用。デフォルトをそのまま使用するには、ServerHttpSecurity.x509(Customizer) または x509(Customizer.withDefaults()) を使用します。詳細については、ドキュメントを参照してください。
    org.springframework.security.core.userdetails.User.withDefaultPasswordEncoder()
    この方法を使用することは、本番環境では安全とは見なされませんが、デモや使用開始には受け入れられます。本番環境では、パスワードが外部でエンコードされていることを確認してください。詳細については、メソッド Javadoc を参照してください。このサポートを削除する予定はありません。これは、本番目的では安全でないと見なされることを示すために非推奨です。
    org.springframework.security.crypto.argon2.Argon2PasswordEncoder.defaultsForSpringSecurity_v5_2()
    代わりに Argon2PasswordEncoder.defaultsForSpringSecurity_v5_8() を使用してください
    org.springframework.security.crypto.password.Pbkdf2PasswordEncoder.defaultsForSpringSecurity_v5_5()
    代わりに Pbkdf2PasswordEncoder.defaultsForSpringSecurity_v5_8() を使用してください
    org.springframework.security.crypto.scrypt.SCryptPasswordEncoder.defaultsForSpringSecurity_v4_1()
    代わりに SCryptPasswordEncoder.defaultsForSpringSecurity_v5_8() を使用してください
    org.springframework.security.ldap.DefaultLdapUsernameToDnMapper.buildDn(String)
    代わりに DefaultLdapUsernameToDnMapper.buildLdapName(String) を使用してください
    org.springframework.security.ldap.LdapUsernameToDnMapper.buildDn(String)
    代わりに LdapUsernameToDnMapper.buildLdapName(String) を使用してください
    org.springframework.security.ldap.LdapUtils.getFullDn(DistinguishedName, Context)
    LdapUtils.getFullDn(LdapName, Context) を使用
    org.springframework.security.ldap.userdetails.LdapUserDetailsManager.addAuthorities(DistinguishedName, Collection<? extends GrantedAuthority>)
    org.springframework.security.ldap.userdetails.LdapUserDetailsManager.buildGroupDn(String)
    org.springframework.security.ldap.userdetails.LdapUserDetailsManager.removeAuthorities(DistinguishedName, Collection<? extends GrantedAuthority>)
    org.springframework.security.messaging.access.intercept.MessageMatcherDelegatingAuthorizationManager.check(Supplier<Authentication>, Message<?>)
    代わりに AuthorizationManager.authorize(Supplier, Object) を使用してください
    org.springframework.security.oauth2.client.OAuth2AuthorizedClientProviderBuilder.password()
    最新の OAuth 2.0 Security Best Current Practice では、Resource Owner Password Credentials グラントの使用が禁止されています。リファレンス OAuth 2.0 セキュリティのベストカレントプラクティスを参照してください。
    org.springframework.security.oauth2.client.OAuth2AuthorizedClientProviderBuilder.password(Consumer<OAuth2AuthorizedClientProviderBuilder.PasswordGrantBuilder>)
    最新の OAuth 2.0 Security Best Current Practice では、Resource Owner Password Credentials グラントの使用が禁止されています。リファレンス OAuth 2.0 セキュリティのベストカレントプラクティスを参照してください。
    org.springframework.security.oauth2.client.oidc.userinfo.OidcUserService.setAccessibleScopes(Set<String>)
    代わりに OidcUserService.setRetrieveUserInfo(Predicate) を使用してください
    org.springframework.security.oauth2.client.ReactiveOAuth2AuthorizedClientProviderBuilder.password()
    最新の OAuth 2.0 Security Best Current Practice では、Resource Owner Password Credentials グラントの使用が禁止されています。リファレンス OAuth 2.0 セキュリティのベストカレントプラクティスを参照してください。
    org.springframework.security.oauth2.client.ReactiveOAuth2AuthorizedClientProviderBuilder.password(Consumer<ReactiveOAuth2AuthorizedClientProviderBuilder.PasswordGrantBuilder>)
    最新の OAuth 2.0 Security Best Current Practice では、Resource Owner Password Credentials グラントの使用が禁止されています。リファレンス OAuth 2.0 セキュリティのベストカレントプラクティスを参照してください。
    org.springframework.security.rsocket.authorization.PayloadExchangeMatcherReactiveAuthorizationManager.check(Mono<Authentication>, PayloadExchange)
    代わりに ReactiveAuthorizationManager.authorize(Mono, Object) を使用してください
    org.springframework.security.saml2.provider.service.registration.RelyingPartyRegistration.Builder.assertingPartyDetails(Consumer<RelyingPartyRegistration.AssertingPartyDetails.Builder>)
    代わりに RelyingPartyRegistration.Builder.assertingPartyMetadata(java.util.function.Consumer<org.springframework.security.saml2.provider.service.registration.AssertingPartyMetadata.Builder<?>>) を使用してください
    org.springframework.security.saml2.provider.service.registration.RelyingPartyRegistration.getAssertingPartyDetails()
    代わりに RelyingPartyRegistration.getAssertingPartyMetadata() を使用してください
    org.springframework.security.saml2.provider.service.registration.RelyingPartyRegistration.withAssertingPartyDetails(RelyingPartyRegistration.AssertingPartyDetails)
    代わりに RelyingPartyRegistration.withAssertingPartyMetadata(org.springframework.security.saml2.provider.service.registration.AssertingPartyMetadata) を使用してください
    org.springframework.security.saml2.provider.service.registration.RelyingPartyRegistration.withRelyingPartyRegistration(RelyingPartyRegistration)
    代わりに RelyingPartyRegistration.mutate() を使用してください
    org.springframework.security.web.access.intercept.AuthorizationFilter.setShouldFilterAllDispatcherTypes(boolean)
    代わりに、DispatcherType へのアクセスを許可します。
     @Configuration
     @EnableWebSecurity
     public class SecurityConfig {
    
            @Bean
            public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
                    http
                            .authorizeHttpRequests((authorize) -> authorize
                                    .dispatcherTypeMatchers(DispatcherType.ERROR).permitAll()
                                    // ...
                            );
                    return http.build();
            }
     }
     
    org.springframework.security.web.access.intercept.RequestMatcherDelegatingAuthorizationManager.check(Supplier<Authentication>, HttpServletRequest)
    代わりに AuthorizationManager.authorize(Supplier, Object) を使用してください
    org.springframework.security.web.context.SecurityContextRepository.loadContext(HttpRequestResponseHolder)
    代わりに SecurityContextRepository.loadDeferredContext(HttpServletRequest) を使用してください。
    org.springframework.security.web.csrf.CookieCsrfTokenRepository.setCookieDomain(String)
    代わりに CookieCsrfTokenRepository.setCookieCustomizer(Consumer) を使用してください。
    org.springframework.security.web.csrf.CookieCsrfTokenRepository.setCookieHttpOnly(boolean)
    代わりに CookieCsrfTokenRepository.setCookieCustomizer(Consumer) を使用してください。
    org.springframework.security.web.csrf.CookieCsrfTokenRepository.setCookieMaxAge(int)
    代わりに CookieCsrfTokenRepository.setCookieCustomizer(Consumer) を使用してください。
    org.springframework.security.web.csrf.CookieCsrfTokenRepository.setSecure(Boolean)
    代わりに CookieCsrfTokenRepository.setCookieCustomizer(Consumer) を使用してください。
    org.springframework.security.web.firewall.StrictHttpFirewall.getEncodedUrlBlacklist()
    代わりに StrictHttpFirewall.getEncodedUrlBlocklist() を使用してください
    org.springframework.security.web.savedrequest.SavedCookie.getComment()
    org.springframework.security.web.savedrequest.SavedCookie.getVersion()
    org.springframework.security.web.server.authentication.AuthenticationWebFilter.setAuthenticationConverter(Function<ServerWebExchange, Mono<Authentication>>)
    AuthenticationWebFilter.setServerAuthenticationConverter(ServerAuthenticationConverter) を推奨する 5.1 時点
    org.springframework.security.web.server.authorization.DelegatingReactiveAuthorizationManager.check(Mono<Authentication>, ServerWebExchange)
    代わりに ReactiveAuthorizationManager.authorize(Mono, Object) を使用してください
    org.springframework.security.web.server.csrf.CookieServerCsrfTokenRepository.setCookieDomain(String)
    代わりに CookieServerCsrfTokenRepository.setCookieCustomizer(Consumer) を使用してください。
    org.springframework.security.web.server.csrf.CookieServerCsrfTokenRepository.setCookieHttpOnly(boolean)
    代わりに CookieServerCsrfTokenRepository.setCookieCustomizer(Consumer) を使用してください。
    org.springframework.security.web.server.csrf.CookieServerCsrfTokenRepository.setCookieMaxAge(int)
    代わりに CookieServerCsrfTokenRepository.setCookieCustomizer(Consumer) を使用してください。
    org.springframework.security.web.server.csrf.CookieServerCsrfTokenRepository.setSecure(boolean)
    代わりに CookieServerCsrfTokenRepository.setCookieCustomizer(Consumer) を使用してください。
    org.springframework.security.web.server.ServerFormLoginAuthenticationConverter.apply(ServerWebExchange)
    org.springframework.security.web.server.ServerHttpBasicAuthenticationConverter.apply(ServerWebExchange)
    org.springframework.security.web.servlet.util.matcher.MvcRequestMatcher.extractUriTemplateVariables(HttpServletRequest)
    org.springframework.security.web.session.ConcurrentSessionFilter.determineExpiredUrl(HttpServletRequest, SessionInformation)
    代わりに ConcurrentSessionFilter(SessionRegistry, SessionInformationExpiredStrategy) を使用してください。
    org.springframework.security.web.session.ConcurrentSessionFilter.setRedirectStrategy(RedirectStrategy)
    代わりに ConcurrentSessionFilter(SessionRegistry, SessionInformationExpiredStrategy) を使用してください。
    org.springframework.security.web.util.matcher.AntPathRequestMatcher.extractUriTemplateVariables(HttpServletRequest)
  • 非推奨のコンストラクター
    コンストラクター
    説明
    org.springframework.security.access.hierarchicalroles.RoleHierarchyImpl()
    代わりに RoleHierarchyImpl.fromHierarchy(java.lang.String) を使用してください
    org.springframework.security.authorization.event.AuthorizationDeniedEvent(Supplier<Authentication>, T, AuthorizationDecision)
    代わりに AuthorizationResult コンストラクターを使用してください
    org.springframework.security.authorization.event.AuthorizationGrantedEvent(Supplier<Authentication>, T, AuthorizationDecision)
    AuthorizationResult を受け取るコンストラクターを使用してください
    org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder(ObjectPostProcessor<Object>)
    org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder(ObjectPostProcessor<Object>, boolean)
    org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder(ObjectPostProcessor<Object>)
    org.springframework.security.config.annotation.web.builders.HttpSecurity(ObjectPostProcessor<Object>, AuthenticationManagerBuilder, Map<Class<?>, Object>)
    org.springframework.security.config.annotation.web.builders.WebSecurity(ObjectPostProcessor<Object>)
    org.springframework.security.crypto.password.Pbkdf2PasswordEncoder(CharSequence, int, int, int)
    代わりに Pbkdf2PasswordEncoder(CharSequence, int, int, SecretKeyFactoryAlgorithm) を使用してください
    org.springframework.security.oauth2.server.resource.authentication.JwtIssuerAuthenticationManagerResolver(String...)
    JwtIssuerAuthenticationManagerResolver.fromTrustedIssuers(String...) を使用
    org.springframework.security.oauth2.server.resource.authentication.JwtIssuerAuthenticationManagerResolver(Collection<String>)
    JwtIssuerAuthenticationManagerResolver.fromTrustedIssuers(Collection) を使用
    org.springframework.security.oauth2.server.resource.authentication.JwtIssuerReactiveAuthenticationManagerResolver(String...)
    JwtIssuerReactiveAuthenticationManagerResolver.fromTrustedIssuers(String...) を使用
    org.springframework.security.oauth2.server.resource.authentication.JwtIssuerReactiveAuthenticationManagerResolver(Collection<String>)
    JwtIssuerReactiveAuthenticationManagerResolver.fromTrustedIssuers(Collection) を使用
    org.springframework.security.saml2.provider.service.authentication.AbstractSaml2AuthenticationRequest.Builder()
    代わりに Builder(RelyingPartyRegistration) を使用してください
    org.springframework.security.web.header.writers.frameoptions.XFrameOptionsHeaderWriter(AllowFromStrategy)
    ALLOW-FROM は廃止されたディレクティブであり、最新のブラウザーでは機能しなくなりました。代わりに、frame-ancestors ディレクティブで Content-Security-Policy を使用します。
    org.springframework.security.web.savedrequest.SavedCookie(String, String, String, String, int, String, boolean, int)
    代わりに SavedCookie(String, String, String, int, String, boolean) を使用してください
    org.springframework.security.web.session.ConcurrentSessionFilter(SessionRegistry, String)
    代わりに ConcurrentSessionFilter(SessionRegistry, SessionInformationExpiredStrategy) と SimpleRedirectSessionInformationExpiredStrategy を使用してください。
  • 非推奨の列挙定数
    列挙定数
    説明
    org.springframework.security.web.header.writers.frameoptions.XFrameOptionsHeaderWriter.XFrameOptionsMode.ALLOW_FROM
    ALLOW-FROM は廃止されたディレクティブであり、最新のブラウザーでは機能しなくなりました。代わりに、frame-ancestors ディレクティブで Content-Security-Policy を使用します。