Skip navigation links
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Terminally Deprecated
  • Interfaces
  • Classes
  • Annotation Interfaces
  • Methods
  • Constructors
  • Enum Constants
  • Terminally Deprecated Elements
    Element
    Description
    org.springframework.security.web.access.channel.AbstractRetryEntryPoint.getPortResolver()
    org.springframework.security.web.access.channel.AbstractRetryEntryPoint.setPortResolver(PortResolver)
    org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint.getPortResolver()
    org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint.setPortResolver(PortResolver)
    org.springframework.security.web.PortResolver
    This existed for an old IE bug and is no longer need.
    org.springframework.security.web.PortResolverImpl
    This existed for an old IE bug and is no longer need.
    org.springframework.security.web.savedrequest.DefaultSavedRequest(HttpServletRequest, PortResolver)
    org.springframework.security.web.savedrequest.DefaultSavedRequest(HttpServletRequest, PortResolver, String)
    org.springframework.security.web.savedrequest.DefaultSavedRequest.doesRequestMatch(HttpServletRequest, PortResolver)
    This is deprecated for removal. Users can compare DefaultSavedRequest.getRedirectUrl() to the HttpServletRequest URL instead.
    org.springframework.security.web.savedrequest.HttpSessionRequestCache.setPortResolver(PortResolver)
  • Deprecated Interfaces
    Interface
    Description
    org.springframework.security.web.access.channel.ChannelDecisionManager
    no replacement is planned, though consider using a custom RequestMatcher for any sophisticated decision-making
    org.springframework.security.web.access.channel.ChannelEntryPoint
    please use HttpsRedirectFilter and its associated PortMapper
    org.springframework.security.web.access.channel.ChannelProcessor
    no replacement is planned, though consider using a custom RequestMatcher for any sophisticated decision-making
    org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource
    In modern Spring Security APIs, each API manages its own configuration context. As such there is no direct replacement for this interface. In the case of method security, please see SecurityAnnotationScanner and AuthorizationManager. In the case of channel security, please see HttpsRedirectFilter. In the case of web security, please see AuthorizationManager.
    org.springframework.security.web.header.writers.frameoptions.AllowFromStrategy
    ALLOW-FROM is an obsolete directive that no longer works in modern browsers. Instead use Content-Security-Policy with the frame-ancestors directive.
    org.springframework.security.web.PortResolver
    This existed for an old IE bug and is no longer need.
  • Deprecated Classes
    Class
    Description
    org.springframework.security.web.access.channel.AbstractRetryEntryPoint
    please use HttpsRedirectFilter and its associated PortMapper
    org.springframework.security.web.access.channel.ChannelDecisionManagerImpl
    no replacement is planned, though consider using a custom RequestMatcher for any sophisticated decision-making
    org.springframework.security.web.access.channel.ChannelProcessingFilter
    see HttpsRedirectFilter
    org.springframework.security.web.access.channel.InsecureChannelProcessor
    no replacement is planned, though consider using a custom RequestMatcher for any sophisticated decision-making
    org.springframework.security.web.access.channel.RetryWithHttpEntryPoint
    please use HttpsRedirectFilter and its associated PortMapper
    org.springframework.security.web.access.channel.RetryWithHttpsEntryPoint
    please use HttpsRedirectFilter and its associated PortMapper
    org.springframework.security.web.access.channel.SecureChannelProcessor
    no replacement is planned, though consider using a custom RequestMatcher for any sophisticated decision-making
    org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator
    Use AuthorizationManagerWebInvocationPrivilegeEvaluator instead
    org.springframework.security.web.access.expression.ExpressionBasedFilterInvocationSecurityMetadataSource
    In modern Spring Security APIs, each API manages its own configuration context. As such there is no direct replacement for this interface. In the case of method security, please see SecurityAnnotationScanner and AuthorizationManager. In the case of channel security, please see HttpsRedirectFilter. In the case of web security, please see AuthorizationManager.
    org.springframework.security.web.access.expression.WebExpressionVoter
    Use WebExpressionAuthorizationManager instead
    org.springframework.security.web.access.intercept.DefaultFilterInvocationSecurityMetadataSource
    In modern Spring Security APIs, each API manages its own configuration context. As such there is no direct replacement for this interface. In the case of method security, please see SecurityAnnotationScanner and AuthorizationManager. In the case of channel security, please see HttpsRedirectFilter. In the case of web security, please see AuthorizationManager.
    org.springframework.security.web.access.intercept.FilterSecurityInterceptor
    Use AuthorizationFilter instead
    org.springframework.security.web.access.RequestMatcherDelegatingWebInvocationPrivilegeEvaluator
    please use AuthorizationManagerWebInvocationPrivilegeEvaluator and adapt any delegate WebInvocationPrivilegeEvaluators into AuthorizationManagers
    org.springframework.security.web.authentication.preauth.x509.SubjectDnX509PrincipalExtractor
    Please use SubjectX500PrincipalExtractor instead
    org.springframework.security.web.bind.support.AuthenticationPrincipalArgumentResolver
    Use AuthenticationPrincipalArgumentResolver instead.
    org.springframework.security.web.context.HttpRequestResponseHolder
    Use SecurityContextRepository.loadDeferredContext(HttpServletRequest)
    org.springframework.security.web.context.SaveContextOnUpdateOrErrorResponseWrapper
    Use SecurityContextRepository.loadDeferredContext(HttpServletRequest) instead.
    org.springframework.security.web.context.SecurityContextPersistenceFilter
    Use SecurityContextHolderFilter
    org.springframework.security.web.header.writers.frameoptions.AbstractRequestParameterAllowFromStrategy
    ALLOW-FROM is an obsolete directive that no longer works in modern browsers. Instead use Content-Security-Policy with the frame-ancestors directive.
    org.springframework.security.web.header.writers.frameoptions.RegExpAllowFromStrategy
    ALLOW-FROM is an obsolete directive that no longer works in modern browsers. Instead use Content-Security-Policy with the frame-ancestors directive.
    org.springframework.security.web.header.writers.frameoptions.StaticAllowFromStrategy
    ALLOW-FROM is an obsolete directive that no longer works in modern browsers. Instead use Content-Security-Policy with the frame-ancestors directive.
    org.springframework.security.web.header.writers.frameoptions.WhiteListedAllowFromStrategy
    ALLOW-FROM is an obsolete directive that no longer works in modern browsers. Instead use Content-Security-Policy with the frame-ancestors directive.
    org.springframework.security.web.header.writers.HpkpHeaderWriter
    see Certificate and Public Key Pinning for more context
    org.springframework.security.web.PortResolverImpl
    This existed for an old IE bug and is no longer need.
    org.springframework.security.web.server.ServerFormLoginAuthenticationConverter
    use ServerFormLoginAuthenticationConverter instead.
    org.springframework.security.web.server.ServerHttpBasicAuthenticationConverter
    Use ServerHttpBasicAuthenticationConverter instead.
  • Deprecated Annotation Interfaces
    Annotation Interface
    Description
    org.springframework.security.web.bind.annotation.AuthenticationPrincipal
    Use AuthenticationPrincipal instead.
  • Deprecated Methods
    Method
    Description
    org.springframework.security.web.access.channel.AbstractRetryEntryPoint.getPortResolver()
    org.springframework.security.web.access.channel.AbstractRetryEntryPoint.setPortResolver(PortResolver)
    org.springframework.security.web.access.expression.WebExpressionAuthorizationManager.setExpressionHandler(SecurityExpressionHandler<RequestAuthorizationContext>)
    Please use WebExpressionAuthorizationManager.withDefaults() or WebExpressionAuthorizationManager.withExpressionHandler(org.springframework.security.access.expression.SecurityExpressionHandler<org.springframework.security.web.access.intercept.RequestAuthorizationContext>)
    org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint.getPortResolver()
    org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint.setPortResolver(PortResolver)
    org.springframework.security.web.context.DelegatingSecurityContextRepository.loadContext(HttpRequestResponseHolder)
     
    org.springframework.security.web.context.HttpSessionSecurityContextRepository.loadContext(HttpRequestResponseHolder)
    please see SecurityContextRepository.loadContext(org.springframework.security.web.context.HttpRequestResponseHolder)
    org.springframework.security.web.context.NullSecurityContextRepository.loadContext(HttpRequestResponseHolder)
    please see SecurityContextRepository.loadContext(org.springframework.security.web.context.HttpRequestResponseHolder)
    org.springframework.security.web.context.RequestAttributeSecurityContextRepository.loadContext(HttpRequestResponseHolder)
    please see SecurityContextRepository.loadContext(org.springframework.security.web.context.HttpRequestResponseHolder)
    org.springframework.security.web.context.SecurityContextRepository.loadContext(HttpRequestResponseHolder)
    Use SecurityContextRepository.loadDeferredContext(HttpServletRequest) instead.
    org.springframework.security.web.firewall.StrictHttpFirewall.getEncodedUrlBlacklist()
    Use StrictHttpFirewall.getEncodedUrlBlocklist() instead
    org.springframework.security.web.savedrequest.DefaultSavedRequest.doesRequestMatch(HttpServletRequest, PortResolver)
    This is deprecated for removal. Users can compare DefaultSavedRequest.getRedirectUrl() to the HttpServletRequest URL instead.
    org.springframework.security.web.savedrequest.HttpSessionRequestCache.setPortResolver(PortResolver)
    org.springframework.security.web.server.authentication.AuthenticationWebFilter.setAuthenticationConverter(Function<ServerWebExchange, Mono<Authentication>>)
    As of 5.1 in favor of AuthenticationWebFilter.setServerAuthenticationConverter(ServerAuthenticationConverter)
    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)
    Use ConcurrentSessionFilter(SessionRegistry, SessionInformationExpiredStrategy) instead.
    org.springframework.security.web.session.ConcurrentSessionFilter.setRedirectStrategy(RedirectStrategy)
    use ConcurrentSessionFilter(SessionRegistry, SessionInformationExpiredStrategy) instead.
  • Deprecated Constructors
    Constructor
    Description
    org.springframework.security.web.header.writers.frameoptions.XFrameOptionsHeaderWriter(AllowFromStrategy)
    ALLOW-FROM is an obsolete directive that no longer works in modern browsers. Instead use Content-Security-Policy with the frame-ancestors directive.
    org.springframework.security.web.savedrequest.DefaultSavedRequest(HttpServletRequest, PortResolver)
    org.springframework.security.web.savedrequest.DefaultSavedRequest(HttpServletRequest, PortResolver, String)
    org.springframework.security.web.session.ConcurrentSessionFilter(SessionRegistry, String)
    use ConcurrentSessionFilter(SessionRegistry, SessionInformationExpiredStrategy) with SimpleRedirectSessionInformationExpiredStrategy instead.
  • Deprecated Enum Constants
    Enum Constant
    Description
    org.springframework.security.web.header.writers.frameoptions.XFrameOptionsHeaderWriter.XFrameOptionsMode.ALLOW_FROM
    ALLOW-FROM is an obsolete directive that no longer works in modern browsers. Instead use Content-Security-Policy with the frame-ancestors directive.