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

非推奨の API

内容

  • インターフェース
  • クラス
  • アノテーションインターフェース
  • フィールド
  • メソッド
  • コンストラクター
  • 列挙型定数
  • 非推奨のインターフェース
    インターフェース
    説明
    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.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.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
    代わりに、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.DefaultPasswordTokenResponseClient
    最新の OAuth 2.0 Security Best Current Practice では、Resource Owner Password Credentials グラントの使用が禁止されています。リファレンス OAuth 2.0 セキュリティのベストカレントプラクティスを参照してください。
    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.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.web.BearerTokenAuthenticationFilter
    代わりに BearerTokenAuthenticationFilter を使用してください
    org.springframework.security.rsocket.metadata.BasicAuthenticationDecoder
    基本認証は標準に発展しませんでした。代わりに単純認証を使用してください。
    org.springframework.security.rsocket.metadata.BasicAuthenticationEncoder
    基本認証は標準に発展しませんでした。SimpleAuthenticationEncoder を使用
    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.authentication.DefaultAuthenticationEventPublisher.setAdditionalExceptionMappings(Properties)
    DefaultAuthenticationEventPublisher.setAdditionalExceptionMappings(Map) を使用
    org.springframework.security.config.annotation.rsocket.RSocketSecurity.basicAuthentication(Customizer<RSocketSecurity.BasicAuthenticationSpec>)
    RSocketSecurity.simpleAuthentication(Customizer) を使用
    org.springframework.security.config.annotation.web.builders.HttpSecurity.authorizeRequests()
    代わりに HttpSecurity.authorizeHttpRequests() を使用してください
    org.springframework.security.config.annotation.web.builders.HttpSecurity.authorizeRequests(Customizer<ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry>)
    代わりに HttpSecurity.authorizeHttpRequests() を使用してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.featurePolicy(String)
    代わりに HeadersConfigurer.permissionsPolicy(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.socket.AbstractSecurityWebSocketMessageBrokerConfigurer.setMessageExpessionHandler(List<SecurityExpressionHandler<Message<Object>>>)
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.featurePolicy(String)
    代わりに ServerHttpSecurity.HeaderSpec.permissionsPolicy(Customizer) を使用してください。
    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.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.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.saml2.provider.service.authentication.OpenSaml4AuthenticationProvider.createDefaultAssertionValidator(Converter<OpenSaml4AuthenticationProvider.AssertionToken, ValidationContext>)
    代わりに OpenSaml4AuthenticationProvider.createDefaultAssertionValidatorWithParameters(java.util.function.Consumer<java.util.Map<java.lang.String, java.lang.Object>>) を使用してください
    org.springframework.security.web.context.SecurityContextRepository.loadContext(HttpRequestResponseHolder)
    代わりに SecurityContextRepository.loadDeferredContext(HttpServletRequest) を使用してください。
    org.springframework.security.web.firewall.StrictHttpFirewall.getEncodedUrlBlacklist()
    代わりに StrictHttpFirewall.getEncodedUrlBlocklist() を使用してください
    org.springframework.security.web.server.authentication.AuthenticationWebFilter.setAuthenticationConverter(Function<ServerWebExchange, Mono<Authentication>>)
    AuthenticationWebFilter.setServerAuthenticationConverter(ServerAuthenticationConverter) を推奨する 5.1 時点
    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.crypto.password.Pbkdf2PasswordEncoder(CharSequence, int, int, int)
    代わりに Pbkdf2PasswordEncoder(CharSequence, int, int, SecretKeyFactoryAlgorithm) を使用してください
    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.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 を使用します。