Class RequestParameterAuthenticationFilter

  • All Implemented Interfaces:
    javax.servlet.Filter, org.springframework.beans.factory.InitializingBean

    public class RequestParameterAuthenticationFilter
    extends Object
    implements javax.servlet.Filter, org.springframework.beans.factory.InitializingBean
    Processes Request Parameter authorization, putting the result into the SecurityContextHolder.

    In summary, this filter looks for request parameters with the userid/password

    If authentication is successful, the resulting Authentication object will be placed into the SecurityContextHolder.

    If authentication fails and ignoreFailure is false (the default), an AuthenticationEntryPoint implementation is called. Usually this should be RequestParameterFilterEntryPoint.

    Do not use this class directly. Instead configure web.xml to use the org.springframework.security.util.FilterToBeanProxy.

    • Constructor Detail

      • RequestParameterAuthenticationFilter

        public RequestParameterAuthenticationFilter()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Filter
      • doFilter

        public void doFilter​(javax.servlet.ServletRequest request,
                             javax.servlet.ServletResponse response,
                             javax.servlet.FilterChain chain)
                      throws IOException,
                             javax.servlet.ServletException
        Specified by:
        doFilter in interface javax.servlet.Filter
        Throws:
        IOException
        javax.servlet.ServletException
      • getAuthenticationEntryPoint

        public org.springframework.security.web.AuthenticationEntryPoint getAuthenticationEntryPoint()
      • getAuthenticationManager

        public org.springframework.security.authentication.AuthenticationManager getAuthenticationManager()
      • init

        public void init​(javax.servlet.FilterConfig arg0)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Filter
        Throws:
        javax.servlet.ServletException
      • isIgnoreFailure

        public boolean isIgnoreFailure()
      • setAuthenticationEntryPoint

        public void setAuthenticationEntryPoint​(org.springframework.security.web.AuthenticationEntryPoint authenticationEntryPoint)
      • setAuthenticationManager

        public void setAuthenticationManager​(org.springframework.security.authentication.AuthenticationManager authenticationManager)
      • setIgnoreFailure

        public void setIgnoreFailure​(boolean ignoreFailure)
      • getUserNameParameter

        public String getUserNameParameter()
      • getPasswordParameter

        public String getPasswordParameter()
      • setUserNameParameter

        public void setUserNameParameter​(String value)
      • setPasswordParameter

        public void setPasswordParameter​(String value)
      • getSystemConfig

        public org.pentaho.platform.api.engine.ISystemConfig getSystemConfig()
      • setSystemConfig

        public void setSystemConfig​(org.pentaho.platform.api.engine.ISystemConfig systemConfig)