Class IamAuthenticationSpringFilter

  • 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.EnvironmentAware, org.springframework.core.env.EnvironmentCapable, org.springframework.web.context.ServletContextAware

    public class IamAuthenticationSpringFilter
    extends AbstractSharedIamAuthenticationFilter
    implements org.springframework.beans.factory.InitializingBean
    Prend les infos d'authentification de IAM dans la request et les met dans le contexte de sécurité Si la request de contient aucune info de sécurité, redirige sur l'url failureUrl
    Author:
    jec
    • Constructor Detail

      • IamAuthenticationSpringFilter

        public IamAuthenticationSpringFilter()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws javax.servlet.ServletException
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Overrides:
        afterPropertiesSet in class org.springframework.web.filter.GenericFilterBean
        Throws:
        javax.servlet.ServletException
      • doFilter

        public void doFilter​(javax.servlet.ServletRequest r,
                             javax.servlet.ServletResponse resp,
                             javax.servlet.FilterChain chain)
                      throws java.io.IOException,
                             javax.servlet.ServletException
        Specified by:
        doFilter in interface javax.servlet.Filter
        Throws:
        java.io.IOException
        javax.servlet.ServletException
      • setFailureUrl

        public void setFailureUrl​(java.lang.String failureUrl)