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

非推奨の API

内容

  • 最終的に非推奨
  • インターフェース
  • クラス
  • アノテーションインターフェース
  • フィールド
  • メソッド
  • コンストラクター
  • 列挙型定数
  • 最終的に非推奨の要素
    要素
    説明
    org.springframework.security.authentication.ott.OneTimeTokenAuthenticationToken(Object, String)
    代わりに StringSE を受け取るコンストラクターを使用してください
    org.springframework.security.authentication.ott.OneTimeTokenAuthenticationToken(Object, Collection<? extends GrantedAuthority>)
    代わりに OneTimeTokenAuthentication を使用してください
    org.springframework.security.authentication.ott.OneTimeTokenAuthenticationToken.authenticated(Object, Collection<? extends GrantedAuthority>)
    代わりに OneTimeTokenAuthentication を使用してください
    org.springframework.security.authentication.ott.OneTimeTokenAuthenticationToken.unauthenticated(String)
    代わりに StringSE を受け取るコンストラクターを使用してください
    org.springframework.security.authentication.ott.OneTimeTokenAuthenticationToken.unauthenticated(Object, String)
    代わりに StringSE を受け取るコンストラクターを使用してください
    org.springframework.security.cas.jackson2.CasJackson2Module
    Jackson 3 に基づいて 7.0 が CasJacksonModule を推奨
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.permissionsPolicy(Customizer<HeadersConfigurer.PermissionsPolicyConfig>)
    7.0 の取り外し用。代わりに HeadersConfigurer.permissionsPolicyHeader(Customizer) を使用してください
    org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.FeaturePolicySpec.and()
    7.0 の取り外し用。代わりに #featurePolicy(Customizer) を使用してください
    org.springframework.security.core.SpringSecurityCoreVersion.SERIAL_VERSION_UID
    各クラスで独自の直列化バージョンを使用するようにしてください
    org.springframework.security.jackson2.CoreJackson2Module
    Jackson 3 に基づいて 7.0 が CoreJacksonModule を推奨
    org.springframework.security.jackson2.SecurityJackson2Modules
    Jackson 3 に基づいて 7.0 が SecurityJacksonModules を推奨
    org.springframework.security.jackson2.SimpleGrantedAuthorityMixin
    7.0 では、Jackson 3 に基づいて org.springframework.security.jackson.SimpleGrantedAuthorityMixin が有利
    org.springframework.security.ldap.jackson2.LdapJackson2Module
    Jackson 3 に基づいて 7.0 が LdapJacksonModule を推奨
    org.springframework.security.oauth2.client.jackson2.OAuth2ClientJackson2Module
    Jackson 3 に基づいて 7.0 が OAuth2ClientJacksonModule を推奨
    org.springframework.security.oauth2.server.authorization.client.JdbcRegisteredClientRepository.RegisteredClientParametersMapper
    JdbcRegisteredClientRepository.JsonMapperRegisteredClientParametersMapper を使用して Jackson 3 に切り替えます。
    org.springframework.security.oauth2.server.authorization.client.JdbcRegisteredClientRepository.RegisteredClientRowMapper
    JdbcRegisteredClientRepository.JsonMapperRegisteredClientRowMapper を使用して Jackson 3 に切り替えます。
    org.springframework.security.oauth2.server.authorization.jackson2.OAuth2AuthorizationServerJackson2Module
    7.0 では、Jackson 3 に基づいて org.springframework.security.oauth2.server.authorization.jackson.OAuth2AuthorizationServerJacksonModule が有利
    org.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService.OAuth2AuthorizationParametersMapper
    JdbcOAuth2AuthorizationService.JsonMapperOAuth2AuthorizationParametersMapper を使用して Jackson 3 に切り替えます。
    org.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService.OAuth2AuthorizationRowMapper
    JdbcOAuth2AuthorizationService.JsonMapperOAuth2AuthorizationRowMapper を使用して Jackson 3 に切り替えます。
    org.springframework.security.oauth2.server.resource.introspection.SpringOpaqueTokenIntrospector(String, String, String)
    SpringOpaqueTokenIntrospector.Builder をご利用ください
    org.springframework.security.oauth2.server.resource.introspection.SpringReactiveOpaqueTokenIntrospector(String, String, String)
    SpringReactiveOpaqueTokenIntrospector.Builder をご利用ください
    org.springframework.security.saml2.jackson2.Saml2Jackson2Module
    Jackson 3 に基づいて 7.0 が Saml2JacksonModule を推奨
    org.springframework.security.web.authentication.DelegatingAuthenticationEntryPoint(LinkedHashMap<RequestMatcher, AuthenticationEntryPoint>)
    DelegatingAuthenticationEntryPoint(AuthenticationEntryPoint, List) を使用
    org.springframework.security.web.authentication.DelegatingAuthenticationEntryPoint.setDefaultEntryPoint(AuthenticationEntryPoint)
    DelegatingAuthenticationEntryPoint(AuthenticationEntryPoint, List) を使用
    org.springframework.security.web.jackson2.WebJackson2Module
    Jackson 3 に基づいて 7.0 が WebJacksonModule を推奨
    org.springframework.security.web.jackson2.WebServletJackson2Module
    Jackson 3 に基づいて 7.0 が WebServletJacksonModule を推奨
    org.springframework.security.web.server.header.CacheControlServerHttpHeadersWriter.CACHE_CONTRTOL_VALUE
    CacheControlServerHttpHeadersWriter.CACHE_CONTROL_VALUE をご利用ください
    org.springframework.security.web.server.jackson2.WebServerJackson2Module
    Jackson 3 に基づいて 7.0 が WebServerJacksonModule を推奨
    org.springframework.security.web.webauthn.authentication.WebAuthnAuthenticationFilter.setConverter(GenericHttpMessageConverter<Object>)
    WebAuthnAuthenticationFilter.setConverter(SmartHttpMessageConverter) を使用
    org.springframework.security.web.webauthn.jackson.WebauthnJackson2Module
    Jackson 3 に基づいて 7.0 が WebauthnJacksonModule を推奨
    org.springframework.security.web.webauthn.management.JdbcUserCredentialRepository.setLobHandler(LobHandler)
    LobHandler は代替手段なしで非推奨となったため、このメソッドも代替手段なしで削除されます。
  • 非推奨のインターフェース
    インターフェース
    説明
    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.ConfigAttribute
    最新の Spring Security API では、各 API が独自の構成コンテキストを管理します。そのため、このインターフェースを直接置き換えるものはありません。メソッドセキュリティの場合は、SecurityAnnotationScanner および AuthorizationManager を参照してください。チャネルセキュリティの場合は、HttpsRedirectFilter を参照してください。Web セキュリティの場合は、AuthorizationManager を参照してください。
    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.access.SecurityMetadataSource
    最新の Spring Security API では、各 API が独自の構成コンテキストを管理します。そのため、このインターフェースを直接置き換えるものはありません。メソッドセキュリティの場合は、SecurityAnnotationScanner および AuthorizationManager を参照してください。チャネルセキュリティの場合は、HttpsRedirectFilter を参照してください。Web セキュリティの場合は、AuthorizationManager を参照してください。
    org.springframework.security.messaging.access.intercept.MessageSecurityMetadataSource
    代わりに MessageMatcherDelegatingAuthorizationManager を使用してください
    org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal
    代わりに Saml2AssertionAuthentication.getRelyingPartyRegistrationId() と Saml2ResponseAssertionAccessor を使用してください
    org.springframework.security.web.access.channel.ChannelDecisionManager
    交換は予定されていないが、高度な意思決定にはカスタム RequestMatcher の使用を検討してください。
    org.springframework.security.web.access.channel.ChannelEntryPoint
    HttpsRedirectFilter とそれに関連する PortMapper を使用してください
    org.springframework.security.web.access.channel.ChannelProcessor
    交換は予定されていないが、高度な意思決定にはカスタム RequestMatcher の使用を検討してください。
    org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource
    最新の Spring Security API では、各 API が独自の構成コンテキストを管理します。そのため、このインターフェースを直接置き換えるものはありません。メソッドセキュリティの場合は、SecurityAnnotationScanner および AuthorizationManager を参照してください。チャネルセキュリティの場合は、HttpsRedirectFilter を参照してください。Web セキュリティの場合は、AuthorizationManager を参照してください。
    org.springframework.security.web.header.writers.frameoptions.AllowFromStrategy
    ALLOW-FROM は廃止されたディレクティブであり、最新のブラウザーでは機能しなくなりました。代わりに、frame-ancestors ディレクティブで Content-Security-Policy を使用します。
  • 非推奨のクラス
    クラス
    説明
    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.SecurityConfig
    最新の Spring Security API では、各 API が独自の構成コンテキストを管理します。そのため、このインターフェースを直接置き換えるものはありません。メソッドセキュリティの場合は、SecurityAnnotationScanner および AuthorizationManager を参照してください。チャネルセキュリティの場合は、HttpsRedirectFilter を参照してください。Web セキュリティの場合は、AuthorizationManager を参照してください。
    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.acls.AclEntryVoter
    代わりに AclPermissionEvaluator を使用してください。Spring メソッドセキュリティアノテーションも役立つ場合があります。たとえば、@PreAuthorize("hasPermission(#id, ObjectsReturnType.class, read)")
    org.springframework.security.acls.afterinvocation.AbstractAclProvider
    代わりに AclPermissionEvaluator を使用してください。Spring メソッドセキュリティアノテーションも役立つ場合があります。たとえば、@PostAuthorize("hasPermission(filterObject, read)")
    org.springframework.security.acls.afterinvocation.AclEntryAfterInvocationCollectionFilteringProvider
    代わりに AclPermissionEvaluator を使用してください。Spring メソッドセキュリティアノテーションも役立つ場合があります。たとえば、@PostFilter("hasPermission(filterObject, read)")
    org.springframework.security.acls.afterinvocation.AclEntryAfterInvocationProvider
    代わりに AclPermissionEvaluator を使用してください。Spring メソッドセキュリティアノテーションも役立つ場合があります。たとえば、@PostAuthorize("hasPermission(filterObject, read)")
    org.springframework.security.cas.jackson2.CasJackson2Module
    Jackson 3 に基づいて 7.0 が CasJacksonModule を推奨
    org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration
    代わりに PrePostMethodSecurityConfiguration、SecuredMethodSecurityConfiguration、または Jsr250MethodSecurityConfiguration を使用してください
    org.springframework.security.config.annotation.web.configurers.AbstractConfigAttributeRequestMatcherRegistry
    最新の Spring Security API では、各 API が独自の構成コンテキストを管理します。そのため、このインターフェースを直接置き換えるものはありません。メソッドセキュリティの場合は、SecurityAnnotationScanner および AuthorizationManager を参照してください。チャネルセキュリティの場合は、HttpsRedirectFilter を参照してください。Web セキュリティの場合は、AuthorizationManager を参照してください。
    org.springframework.security.config.annotation.web.configurers.ChannelSecurityConfigurer
    代わりに HttpsRedirectConfigurer を使用してください
    org.springframework.security.config.annotation.web.configurers.ChannelSecurityConfigurer.ChannelRequestMatcherRegistry
    代替の予定はありません
    org.springframework.security.config.annotation.web.configurers.ChannelSecurityConfigurer.RequiresChannelUrl
    代替の予定はありません
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.HpkpConfig
    詳細なコンテキストについては、証明書と公開鍵ピンニングを参照してください
    org.springframework.security.config.annotation.web.servlet.configuration.WebMvcSecurityConfiguration
    これは、SpringWebMvcImportSelector を使用して内部的に適用されます
    org.springframework.security.config.http.ChannelAttributeFactory
    最新の Spring Security API では、各 API が独自の構成コンテキストを管理します。そのため、このインターフェースを直接置き換えるものはありません。メソッドセキュリティの場合は、SecurityAnnotationScanner および AuthorizationManager を参照してください。チャネルセキュリティの場合は、HttpsRedirectFilter を参照してください。Web セキュリティの場合は、AuthorizationManager を参照してください。
    org.springframework.security.config.http.FilterInvocationSecurityMetadataSourceParser
    代わりに `use-authorization-manager` プロパティを使用してください
    org.springframework.security.config.http.MessageMatcherFactoryBean
    org.springframework.security.config.http.RequestMatcherFactoryBean
    org.springframework.security.config.method.GlobalMethodSecurityBeanDefinitionParser
    代わりに MethodSecurityBeanDefinitionParser を使用してください
    org.springframework.security.config.method.MethodSecurityMetadataSourceBeanDefinitionParser
    <intercept-methods>、<method-security>、または @EnableMethodSecurity を使用
    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.jackson2.CoreJackson2Module
    Jackson 3 に基づいて 7.0 が CoreJacksonModule を推奨
    org.springframework.security.jackson2.SecurityJackson2Modules
    Jackson 3 に基づいて 7.0 が SecurityJacksonModules を推奨
    org.springframework.security.jackson2.SimpleGrantedAuthorityMixin
    7.0 では、Jackson 3 に基づいて org.springframework.security.jackson.SimpleGrantedAuthorityMixin が有利
    org.springframework.security.ldap.jackson2.LdapJackson2Module
    Jackson 3 に基づいて 7.0 が LdapJacksonModule を推奨
    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.jackson2.OAuth2ClientJackson2Module
    Jackson 3 に基づいて 7.0 が OAuth2ClientJacksonModule を推奨
    org.springframework.security.oauth2.server.authorization.client.JdbcRegisteredClientRepository.RegisteredClientParametersMapper
    JdbcRegisteredClientRepository.JsonMapperRegisteredClientParametersMapper を使用して Jackson 3 に切り替えます。
    org.springframework.security.oauth2.server.authorization.client.JdbcRegisteredClientRepository.RegisteredClientRowMapper
    JdbcRegisteredClientRepository.JsonMapperRegisteredClientRowMapper を使用して Jackson 3 に切り替えます。
    org.springframework.security.oauth2.server.authorization.jackson2.OAuth2AuthorizationServerJackson2Module
    7.0 では、Jackson 3 に基づいて org.springframework.security.oauth2.server.authorization.jackson.OAuth2AuthorizationServerJacksonModule が有利
    org.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService.OAuth2AuthorizationParametersMapper
    JdbcOAuth2AuthorizationService.JsonMapperOAuth2AuthorizationParametersMapper を使用して Jackson 3 に切り替えます。
    org.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService.OAuth2AuthorizationRowMapper
    JdbcOAuth2AuthorizationService.JsonMapperOAuth2AuthorizationRowMapper を使用して Jackson 3 に切り替えます。
    org.springframework.security.rsocket.authentication.BasicAuthenticationPayloadExchangeConverter
    代わりに AuthenticationPayloadExchangeConverter を使用してください
    org.springframework.security.rsocket.authentication.BearerPayloadExchangeConverter
    代わりに AuthenticationPayloadExchangeConverter を使用してください
    org.springframework.security.rsocket.metadata.BasicAuthenticationDecoder
    基本認証は標準に発展しませんでした。代わりに単純認証を使用してください。
    org.springframework.security.rsocket.metadata.BasicAuthenticationEncoder
    基本認証は標準に発展しませんでした。SimpleAuthenticationEncoder を使用
    org.springframework.security.saml2.jackson2.Saml2Jackson2Module
    Jackson 3 に基づいて 7.0 が Saml2JacksonModule を推奨
    org.springframework.security.saml2.provider.service.authentication.DefaultSaml2AuthenticatedPrincipal
    Saml2ResponseAssertionAccessor をご利用ください
    org.springframework.security.saml2.provider.service.metadata.RequestMatcherMetadataResponseResolver
    RequestMatcherMetadataResponseResolver をご利用ください
    org.springframework.security.web.access.channel.AbstractRetryEntryPoint
    HttpsRedirectFilter とそれに関連する PortMapper を使用してください
    org.springframework.security.web.access.channel.ChannelDecisionManagerImpl
    交換は予定されていないが、高度な意思決定にはカスタム RequestMatcher の使用を検討してください。
    org.springframework.security.web.access.channel.ChannelProcessingFilter
    HttpsRedirectFilter を参照してください
    org.springframework.security.web.access.channel.InsecureChannelProcessor
    交換は予定されていないが、高度な意思決定にはカスタム RequestMatcher の使用を検討してください。
    org.springframework.security.web.access.channel.RetryWithHttpEntryPoint
    HttpsRedirectFilter とそれに関連する PortMapper を使用してください
    org.springframework.security.web.access.channel.RetryWithHttpsEntryPoint
    HttpsRedirectFilter とそれに関連する PortMapper を使用してください
    org.springframework.security.web.access.channel.SecureChannelProcessor
    交換は予定されていないが、高度な意思決定にはカスタム RequestMatcher の使用を検討してください。
    org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator
    代わりに AuthorizationManagerWebInvocationPrivilegeEvaluator を使用してください
    org.springframework.security.web.access.expression.ExpressionBasedFilterInvocationSecurityMetadataSource
    最新の Spring Security API では、各 API が独自の構成コンテキストを管理します。そのため、このインターフェースを直接置き換えるものはありません。メソッドセキュリティの場合は、SecurityAnnotationScanner および AuthorizationManager を参照してください。チャネルセキュリティの場合は、HttpsRedirectFilter を参照してください。Web セキュリティの場合は、AuthorizationManager を参照してください。
    org.springframework.security.web.access.expression.WebExpressionVoter
    代わりに WebExpressionAuthorizationManager を使用してください
    org.springframework.security.web.access.intercept.DefaultFilterInvocationSecurityMetadataSource
    最新の Spring Security API では、各 API が独自の構成コンテキストを管理します。そのため、このインターフェースを直接置き換えるものはありません。メソッドセキュリティの場合は、SecurityAnnotationScanner および AuthorizationManager を参照してください。チャネルセキュリティの場合は、HttpsRedirectFilter を参照してください。Web セキュリティの場合は、AuthorizationManager を参照してください。
    org.springframework.security.web.access.intercept.FilterSecurityInterceptor
    代わりに AuthorizationFilter を使用してください
    org.springframework.security.web.access.RequestMatcherDelegatingWebInvocationPrivilegeEvaluator
    AuthorizationManagerWebInvocationPrivilegeEvaluator を使用し、委譲された WebInvocationPrivilegeEvaluator を AuthorizationManager に適応させてください。
    org.springframework.security.web.authentication.preauth.x509.SubjectDnX509PrincipalExtractor
    代わりに SubjectX500PrincipalExtractor を使用してください
    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.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.jackson2.WebJackson2Module
    Jackson 3 に基づいて 7.0 が WebJacksonModule を推奨
    org.springframework.security.web.jackson2.WebServletJackson2Module
    Jackson 3 に基づいて 7.0 が WebServletJacksonModule を推奨
    org.springframework.security.web.server.jackson2.WebServerJackson2Module
    Jackson 3 に基づいて 7.0 が WebServerJacksonModule を推奨
    org.springframework.security.web.server.ServerFormLoginAuthenticationConverter
    代わりに ServerFormLoginAuthenticationConverter を使用してください。
    org.springframework.security.web.server.ServerHttpBasicAuthenticationConverter
    代わりに ServerHttpBasicAuthenticationConverter を使用してください。
    org.springframework.security.web.webauthn.jackson.WebauthnJackson2Module
    Jackson 3 に基づいて 7.0 が WebauthnJacksonModule を推奨
  • 非推奨のアノテーションインターフェース
    アノテーションインターフェース
    説明
    org.springframework.security.access.method.P
    @{ コード org.springframework.security.core.parameters.P} を使用してください
    org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity
    代わりに EnableMethodSecurity を使用してください
    org.springframework.security.web.bind.annotation.AuthenticationPrincipal
    代わりに AuthenticationPrincipal を使用してください。
  • 非推奨のフィールド
    フィールド
    説明
    org.springframework.security.core.SpringSecurityCoreVersion.SERIAL_VERSION_UID
    各クラスで独自の直列化バージョンを使用するようにしてください
    org.springframework.security.messaging.util.matcher.AbstractMessageMatcherComposite.LOGGER
    5.4 以降、AbstractMessageMatcherComposite.logger を推奨
    org.springframework.security.oauth2.jwt.JoseHeaderNames.X5T
    SHA-1 アルゴリズムは衝突攻撃に対して脆弱であることが証明されているため、使用すべきではありません。詳細については、Google セキュリティブログを参照してください。
    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.web.server.header.CacheControlServerHttpHeadersWriter.CACHE_CONTRTOL_VALUE
    CacheControlServerHttpHeadersWriter.CACHE_CONTROL_VALUE をご利用ください
  • 非推奨のメソッド
    メソッド
    説明
    org.springframework.security.access.expression.AbstractSecurityExpressionHandler.getDefaultAuthorizationManagerFactory()
    代わりに AbstractSecurityExpressionHandler.setAuthorizationManagerFactory(AuthorizationManagerFactory) を使用してください
    org.springframework.security.access.expression.AbstractSecurityExpressionHandler.getRoleHierarchy()
    代わりに AbstractSecurityExpressionHandler.getDefaultAuthorizationManagerFactory() を使用してください
    org.springframework.security.access.expression.AbstractSecurityExpressionHandler.setRoleHierarchy(RoleHierarchy)
    代わりに AbstractSecurityExpressionHandler.setAuthorizationManagerFactory(AuthorizationManagerFactory) を使用してください
    org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler.getDefaultRolePrefix()
    代わりに AbstractSecurityExpressionHandler.setAuthorizationManagerFactory(AuthorizationManagerFactory) を使用してください
    org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler.getTrustResolver()
    代わりに AbstractSecurityExpressionHandler.setAuthorizationManagerFactory(AuthorizationManagerFactory) を使用してください
    org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler.setDefaultRolePrefix(String)
    代わりに AbstractSecurityExpressionHandler.setAuthorizationManagerFactory(AuthorizationManagerFactory) を使用してください
    org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler.setTrustResolver(AuthenticationTrustResolver)
    代わりに AbstractSecurityExpressionHandler.setAuthorizationManagerFactory(AuthorizationManagerFactory) を使用してください
    org.springframework.security.access.expression.SecurityExpressionRoot.setDefaultRolePrefix(String)
    代わりに SecurityExpressionRoot.setAuthorizationManagerFactory(AuthorizationManagerFactory) を使用してください
    org.springframework.security.access.expression.SecurityExpressionRoot.setRoleHierarchy(RoleHierarchy)
    代わりに SecurityExpressionRoot.setAuthorizationManagerFactory(AuthorizationManagerFactory) を使用してください
    org.springframework.security.access.expression.SecurityExpressionRoot.setTrustResolver(AuthenticationTrustResolver)
    代わりに SecurityExpressionRoot.setAuthorizationManagerFactory(AuthorizationManagerFactory) を使用してください
    org.springframework.security.access.hierarchicalroles.RoleHierarchyUtils.roleHierarchyFromMap(Map<String, List<String>>)
    RoleHierarchyImpl#setHierarchy 廃止通知を参照してください
    org.springframework.security.authentication.DefaultAuthenticationEventPublisher.setAdditionalExceptionMappings(Properties)
    DefaultAuthenticationEventPublisher.setAdditionalExceptionMappings(Map) を使用
    org.springframework.security.authentication.ott.OneTimeTokenAuthenticationToken.authenticated(Object, Collection<? extends GrantedAuthority>)
    代わりに OneTimeTokenAuthentication を使用してください
    org.springframework.security.authentication.ott.OneTimeTokenAuthenticationToken.unauthenticated(String)
    代わりに StringSE を受け取るコンストラクターを使用してください
    org.springframework.security.authentication.ott.OneTimeTokenAuthenticationToken.unauthenticated(Object, String)
    代わりに StringSE を受け取るコンストラクターを使用してください
    org.springframework.security.authorization.method.AuthorizationAdvisorProxyFactory.addAdvisor(AuthorizationAdvisor)
    コンストラクターにすべてのアドバイザーを指定してください
    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.config.annotation.rsocket.RSocketSecurity.basicAuthentication(Customizer<RSocketSecurity.BasicAuthenticationSpec>)
    RSocketSecurity.simpleAuthentication(Customizer) を使用
    org.springframework.security.config.annotation.web.builders.HttpSecurity.requiresChannel(Customizer<ChannelSecurityConfigurer.ChannelRequestMatcherRegistry>)
    HttpSecurity.redirectToHttps(org.springframework.security.config.Customizer<org.springframework.security.config.annotation.web.configurers.HttpsRedirectConfigurer<org.springframework.security.config.annotation.web.builders.HttpSecurity>>) を使用
    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.httpPublicKeyPinning(Customizer<HeadersConfigurer.HpkpConfig>)
    詳細なコンテキストについては、証明書と公開鍵ピンニングを参照してください
    org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.permissionsPolicy(Customizer<HeadersConfigurer.PermissionsPolicyConfig>)
    7.0 の取り外し用。代わりに HeadersConfigurer.permissionsPolicyHeader(Customizer) を使用してください
    org.springframework.security.config.annotation.web.configurers.ott.OneTimeTokenLoginConfigurer.authenticationFailureHandler(AuthenticationFailureHandler)
    代わりに AbstractAuthenticationFilterConfigurer.failureHandler(AuthenticationFailureHandler) を使用してください
    org.springframework.security.config.annotation.web.configurers.ott.OneTimeTokenLoginConfigurer.authenticationSuccessHandler(AuthenticationSuccessHandler)
    代わりに AbstractAuthenticationFilterConfigurer.successHandler(AuthenticationSuccessHandler) を使用してください
    org.springframework.security.config.annotation.web.configurers.ott.OneTimeTokenLoginConfigurer.getContext()
    代わりに this.context を使用してください
    org.springframework.security.config.annotation.web.configurers.saml2.Saml2LoginConfigurer.authenticationRequestUri(String)
    代わりに Saml2LoginConfigurer.authenticationRequestUriQuery(java.lang.String) を使用してください
    org.springframework.security.config.annotation.web.configurers.X509Configurer.subjectPrincipalRegex(String)
    代わりに {X509Configurer.x509PrincipalExtractor(X509PrincipalExtractor) を使用してください
    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.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.data.repository.query.SecurityEvaluationContextExtension.setDefaultRolePrefix(String)
    代わりに SecurityEvaluationContextExtension.setAuthorizationManagerFactory(AuthorizationManagerFactory) を使用してください
    org.springframework.security.data.repository.query.SecurityEvaluationContextExtension.setRoleHierarchy(RoleHierarchy)
    代わりに SecurityEvaluationContextExtension.setAuthorizationManagerFactory(AuthorizationManagerFactory) を使用してください
    org.springframework.security.data.repository.query.SecurityEvaluationContextExtension.setTrustResolver(AuthenticationTrustResolver)
    代わりに SecurityEvaluationContextExtension.setAuthorizationManagerFactory(AuthorizationManagerFactory) を使用してください
    org.springframework.security.messaging.access.expression.DefaultMessageSecurityExpressionHandler.setTrustResolver(AuthenticationTrustResolver)
    代わりに AbstractSecurityExpressionHandler.setAuthorizationManagerFactory(AuthorizationManagerFactory) を使用してください
    org.springframework.security.oauth2.server.resource.web.authentication.BearerTokenAuthenticationFilter.setAuthenticationDetailsSource(AuthenticationDetailsSource<HttpServletRequest, ?>)
    コンストラクターに AuthenticationConverter を指定し、代わりに AuthenticationDetailsSource を設定してください。例: BearerTokenAuthenticationConverter.setAuthenticationDetailsSource(org.springframework.security.authentication.AuthenticationDetailsSource<jakarta.servlet.http.HttpServletRequest, ?>) を使用できます。
    org.springframework.security.oauth2.server.resource.web.authentication.BearerTokenAuthenticationFilter.setBearerTokenResolver(BearerTokenResolver)
    代わりにコンストラクターに AuthenticationConverter を指定してください
    org.springframework.security.web.access.expression.DefaultHttpSecurityExpressionHandler.setDefaultRolePrefix(String)
    代わりに AbstractSecurityExpressionHandler.setAuthorizationManagerFactory(AuthorizationManagerFactory) を使用してください
    org.springframework.security.web.access.expression.DefaultHttpSecurityExpressionHandler.setTrustResolver(AuthenticationTrustResolver)
    代わりに AbstractSecurityExpressionHandler.setAuthorizationManagerFactory(AuthorizationManagerFactory) を使用してください
    org.springframework.security.web.access.expression.DefaultWebSecurityExpressionHandler.setDefaultRolePrefix(String)
    代わりに AbstractSecurityExpressionHandler.setAuthorizationManagerFactory(AuthorizationManagerFactory) を使用してください
    org.springframework.security.web.access.expression.DefaultWebSecurityExpressionHandler.setTrustResolver(AuthenticationTrustResolver)
    代わりに AbstractSecurityExpressionHandler.setAuthorizationManagerFactory(AuthorizationManagerFactory) を使用してください
    org.springframework.security.web.access.expression.WebExpressionAuthorizationManager.setExpressionHandler(SecurityExpressionHandler<RequestAuthorizationContext>)
    WebExpressionAuthorizationManager.withDefaults() または WebExpressionAuthorizationManager.withExpressionHandler(org.springframework.security.access.expression.SecurityExpressionHandler<org.springframework.security.web.access.intercept.RequestAuthorizationContext>) を使用してください
    org.springframework.security.web.authentication.DelegatingAuthenticationEntryPoint.setDefaultEntryPoint(AuthenticationEntryPoint)
    DelegatingAuthenticationEntryPoint(AuthenticationEntryPoint, List) を使用
    org.springframework.security.web.context.DelegatingSecurityContextRepository.loadContext(HttpRequestResponseHolder)
    org.springframework.security.web.context.HttpSessionSecurityContextRepository.loadContext(HttpRequestResponseHolder)
    SecurityContextRepository.loadContext(org.springframework.security.web.context.HttpRequestResponseHolder) を参照してください
    org.springframework.security.web.context.NullSecurityContextRepository.loadContext(HttpRequestResponseHolder)
    SecurityContextRepository.loadContext(org.springframework.security.web.context.HttpRequestResponseHolder) を参照してください
    org.springframework.security.web.context.RequestAttributeSecurityContextRepository.loadContext(HttpRequestResponseHolder)
    SecurityContextRepository.loadContext(org.springframework.security.web.context.HttpRequestResponseHolder) を参照してください
    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.session.ConcurrentSessionFilter.determineExpiredUrl(HttpServletRequest, SessionInformation)
    代わりに ConcurrentSessionFilter(SessionRegistry, SessionInformationExpiredStrategy) を使用してください。
    org.springframework.security.web.session.ConcurrentSessionFilter.setRedirectStrategy(RedirectStrategy)
    代わりに ConcurrentSessionFilter(SessionRegistry, SessionInformationExpiredStrategy) を使用してください。
    org.springframework.security.web.webauthn.authentication.WebAuthnAuthenticationFilter.setConverter(GenericHttpMessageConverter<Object>)
    WebAuthnAuthenticationFilter.setConverter(SmartHttpMessageConverter) を使用
    org.springframework.security.web.webauthn.management.JdbcUserCredentialRepository.setLobHandler(LobHandler)
    LobHandler は代替手段なしで非推奨となったため、このメソッドも代替手段なしで削除されます。
  • 非推奨のコンストラクター
    コンストラクター
    説明
    org.springframework.security.access.expression.SecurityExpressionRoot(Authentication)
    代わりに SecurityExpressionRoot(Supplier, Object) を使用してください
    org.springframework.security.access.expression.SecurityExpressionRoot(Supplier<Authentication>)
    代わりに SecurityExpressionRoot(Supplier, Object) を使用してください
    org.springframework.security.authentication.ott.OneTimeTokenAuthenticationToken(Object, String)
    代わりに StringSE を受け取るコンストラクターを使用してください
    org.springframework.security.authentication.ott.OneTimeTokenAuthenticationToken(Object, Collection<? extends GrantedAuthority>)
    代わりに OneTimeTokenAuthentication を使用してください
    org.springframework.security.crypto.password.Pbkdf2PasswordEncoder(CharSequence, int, int, int)
    代わりに Pbkdf2PasswordEncoder(CharSequence, int, int, SecretKeyFactoryAlgorithm) を使用してください
    org.springframework.security.oauth2.server.resource.introspection.SpringOpaqueTokenIntrospector(String, String, String)
    SpringOpaqueTokenIntrospector.Builder をご利用ください
    org.springframework.security.oauth2.server.resource.introspection.SpringReactiveOpaqueTokenIntrospector(String, String, String)
    SpringReactiveOpaqueTokenIntrospector.Builder をご利用ください
    org.springframework.security.saml2.provider.service.authentication.AbstractSaml2AuthenticationRequest.Builder()
    代わりに Builder(RelyingPartyRegistration) を使用してください
    org.springframework.security.web.access.expression.WebSecurityExpressionRoot(Authentication, FilterInvocation)
    代わりに WebSecurityExpressionRoot(Supplier, RequestAuthorizationContext) を使用してください
    org.springframework.security.web.access.expression.WebSecurityExpressionRoot(Supplier<? extends Authentication>, HttpServletRequest)
    代わりに WebSecurityExpressionRoot(Supplier, RequestAuthorizationContext) を使用してください
    org.springframework.security.web.authentication.DelegatingAuthenticationEntryPoint(LinkedHashMap<RequestMatcher, AuthenticationEntryPoint>)
    DelegatingAuthenticationEntryPoint(AuthenticationEntryPoint, List) を使用
    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.config.annotation.rsocket.PayloadInterceptorOrder.BASIC_AUTHENTICATION
    PayloadInterceptorOrder.AUTHENTICATION を参照してください
    org.springframework.security.config.annotation.rsocket.PayloadInterceptorOrder.JWT_AUTHENTICATION
    PayloadInterceptorOrder.AUTHENTICATION を参照してください
    org.springframework.security.web.header.writers.frameoptions.XFrameOptionsHeaderWriter.XFrameOptionsMode.ALLOW_FROM
    ALLOW-FROM は廃止されたディレクティブであり、最新のブラウザーでは機能しなくなりました。代わりに、frame-ancestors ディレクティブで Content-Security-Policy を使用します。