org.pentaho.platform.web.http.security
Class RequestParameterAuthenticationFilter
java.lang.Object
org.pentaho.platform.web.http.security.RequestParameterAuthenticationFilter
public class RequestParameterAuthenticationFilter
- extends Object
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.acegisecurity.util.FilterToBeanProxy
.
RequestParameterAuthenticationFilter
public RequestParameterAuthenticationFilter()
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Throws:
Exception
destroy
public void destroy()
doFilter
public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws IOException,
ServletException
- Throws:
IOException
ServletException
getAuthenticationEntryPoint
public AuthenticationEntryPoint getAuthenticationEntryPoint()
getAuthenticationManager
public AuthenticationManager getAuthenticationManager()
init
public void init(FilterConfig arg0)
throws ServletException
- Throws:
ServletException
isIgnoreFailure
public boolean isIgnoreFailure()
setAuthenticationEntryPoint
public void setAuthenticationEntryPoint(AuthenticationEntryPoint authenticationEntryPoint)
setAuthenticationManager
public void setAuthenticationManager(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)