Class AbstractLocalCrowdAuthenticationProcessingFilter

java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter
com.atlassian.crowd.integration.springsecurity.AbstractCrowdSSOAuthenticationProcessingFilter
com.atlassian.crowd.integration.springsecurity.AbstractLocalCrowdAuthenticationProcessingFilter
All Implemented Interfaces:
javax.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.context.MessageSourceAware, org.springframework.core.env.EnvironmentCapable, org.springframework.web.context.ServletContextAware
Direct Known Subclasses:
LocalCrowdSSOAuthenticationProcessingFilter

public abstract class AbstractLocalCrowdAuthenticationProcessingFilter extends AbstractCrowdSSOAuthenticationProcessingFilter
  • Field Details

  • Constructor Details

  • Method Details

    • getCookieConfiguration

      protected CookieConfiguration getCookieConfiguration()
      Specified by:
      getCookieConfiguration in class AbstractCrowdSSOAuthenticationProcessingFilter
    • appendSuppliers

      protected void appendSuppliers(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, com.google.common.collect.ImmutableList.Builder<org.apache.commons.lang3.tuple.Pair<Supplier<org.springframework.security.authentication.AbstractAuthenticationToken>,Consumer<org.springframework.security.core.AuthenticationException>>> builder)
      Overrides:
      appendSuppliers in class AbstractCrowdSSOAuthenticationProcessingFilter
    • successfulAuthentication

      protected void successfulAuthentication(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain, org.springframework.security.core.Authentication authResult) throws IOException, javax.servlet.ServletException
      Description copied from class: AbstractCrowdSSOAuthenticationProcessingFilter
      Attempts to write out the successful SSO token to a cookie, if an SSO token was generated and stored via the AuthenticationProvider.

      This effectively establishes SSO when using the CrowdAuthenticationProvider in conjunction with this filter.

      Overrides:
      successfulAuthentication in class AbstractCrowdSSOAuthenticationProcessingFilter
      Parameters:
      request - servlet request.
      response - servlet response.
      authResult - result of a successful authentication. If it is a CrowdSSOAuthenticationToken then the SSO token will be set to the "credentials" property.
      Throws:
      IOException - not thrown.
      javax.servlet.ServletException
    • clearRememberMeToken

      protected void clearRememberMeToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    • userWantsToBeRemembered

      protected abstract boolean userWantsToBeRemembered(javax.servlet.http.HttpServletRequest request)