Class CCSMAuthenticationCookieFilter

java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
io.camunda.optimize.rest.security.ccsm.CCSMAuthenticationCookieFilter
All Implemented Interfaces:
jakarta.servlet.Filter, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.EnvironmentAware, org.springframework.core.env.EnvironmentCapable, org.springframework.web.context.ServletContextAware

@Conditional(io.camunda.optimize.service.util.configuration.condition.CCSMCondition.class) public class CCSMAuthenticationCookieFilter extends org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
  • Field Summary

    Fields inherited from class org.springframework.web.filter.GenericFilterBean

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    CCSMAuthenticationCookieFilter(CCSMTokenService ccsmTokenService, org.springframework.security.authentication.AuthenticationManager authenticationManager)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain)
     
    protected Object
    getPreAuthenticatedCredentials(jakarta.servlet.http.HttpServletRequest request)
     
    protected Object
    getPreAuthenticatedPrincipal(jakarta.servlet.http.HttpServletRequest request)
     

    Methods inherited from class org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter

    afterPropertiesSet, getAuthenticationDetailsSource, principalChanged, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationFailureHandler, setAuthenticationManager, setAuthenticationSuccessHandler, setCheckForPrincipalChanges, setContinueFilterChainOnUnsuccessfulAuthentication, setInvalidateSessionOnPrincipalChange, setRequiresAuthenticationRequestMatcher, setSecurityContextHolderStrategy, setSecurityContextRepository, successfulAuthentication, unsuccessfulAuthentication

    Methods inherited from class org.springframework.web.filter.GenericFilterBean

    addRequiredProperty, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CCSMAuthenticationCookieFilter

      public CCSMAuthenticationCookieFilter(CCSMTokenService ccsmTokenService, org.springframework.security.authentication.AuthenticationManager authenticationManager)
    • CCSMAuthenticationCookieFilter

      public CCSMAuthenticationCookieFilter(CCSMTokenService ccsmTokenService)
  • Method Details

    • doFilter

      public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException
      Specified by:
      doFilter in interface jakarta.servlet.Filter
      Overrides:
      doFilter in class org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
      Throws:
      IOException
      jakarta.servlet.ServletException
    • getPreAuthenticatedPrincipal

      protected Object getPreAuthenticatedPrincipal(jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      getPreAuthenticatedPrincipal in class org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
    • getPreAuthenticatedCredentials

      protected Object getPreAuthenticatedCredentials(jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      getPreAuthenticatedCredentials in class org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter