org.pentaho.platform.web.http.security
Class RequestParameterAuthenticationFilter

java.lang.Object
  extended by org.pentaho.platform.web.http.security.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 Summary
RequestParameterAuthenticationFilter()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
           
 org.springframework.security.ui.AuthenticationEntryPoint getAuthenticationEntryPoint()
           
 org.springframework.security.AuthenticationManager getAuthenticationManager()
           
 String getPasswordParameter()
           
 String getUserNameParameter()
           
 void init(javax.servlet.FilterConfig arg0)
           
 boolean isIgnoreFailure()
           
 void setAuthenticationEntryPoint(org.springframework.security.ui.AuthenticationEntryPoint authenticationEntryPoint)
           
 void setAuthenticationManager(org.springframework.security.AuthenticationManager authenticationManager)
           
 void setIgnoreFailure(boolean ignoreFailure)
           
 void setPasswordParameter(String value)
           
 void setUserNameParameter(String value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.ui.AuthenticationEntryPoint getAuthenticationEntryPoint()

getAuthenticationManager

public org.springframework.security.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.ui.AuthenticationEntryPoint authenticationEntryPoint)

setAuthenticationManager

public void setAuthenticationManager(org.springframework.security.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)