Class RequestParameterAuthenticationFilter
- java.lang.Object
-
- 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 theSecurityContextHolder
.In summary, this filter looks for request parameters with the userid/password
If authentication is successful, the resulting
Authentication
object will be placed into theSecurityContextHolder
.If authentication fails and
ignoreFailure
isfalse
(the default), anAuthenticationEntryPoint
implementation is called. Usually this should beRequestParameterFilterEntryPoint
.Do not use this class directly. Instead configure
web.xml
to use theorg.springframework.security.util.FilterToBeanProxy
.
-
-
Constructor Summary
Constructors Constructor Description RequestParameterAuthenticationFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
void
destroy()
void
doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
org.springframework.security.web.AuthenticationEntryPoint
getAuthenticationEntryPoint()
org.springframework.security.authentication.AuthenticationManager
getAuthenticationManager()
String
getPasswordParameter()
org.pentaho.platform.api.engine.ISystemConfig
getSystemConfig()
String
getUserNameParameter()
void
init(javax.servlet.FilterConfig arg0)
boolean
isIgnoreFailure()
void
setAuthenticationEntryPoint(org.springframework.security.web.AuthenticationEntryPoint authenticationEntryPoint)
void
setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager authenticationManager)
void
setIgnoreFailure(boolean ignoreFailure)
void
setPasswordParameter(String value)
void
setSystemConfig(org.pentaho.platform.api.engine.ISystemConfig systemConfig)
void
setUserNameParameter(String value)
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.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 interfacejavax.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 interfacejavax.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)
-
-