public class RequestParameterAuthenticationFilter extends Object implements javax.servlet.Filter, org.springframework.beans.factory.InitializingBean
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 and Description |
---|
RequestParameterAuthenticationFilter() |
Modifier and Type | Method and 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) |
public RequestParameterAuthenticationFilter()
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void destroy()
destroy
in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public org.springframework.security.web.AuthenticationEntryPoint getAuthenticationEntryPoint()
public org.springframework.security.authentication.AuthenticationManager getAuthenticationManager()
public void init(javax.servlet.FilterConfig arg0) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public boolean isIgnoreFailure()
public void setAuthenticationEntryPoint(org.springframework.security.web.AuthenticationEntryPoint authenticationEntryPoint)
public void setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager authenticationManager)
public void setIgnoreFailure(boolean ignoreFailure)
public String getUserNameParameter()
public String getPasswordParameter()
public void setUserNameParameter(String value)
public void setPasswordParameter(String value)
public org.pentaho.platform.api.engine.ISystemConfig getSystemConfig()
public void setSystemConfig(org.pentaho.platform.api.engine.ISystemConfig systemConfig)
Copyright © 2018 Hitachi Vantara. All rights reserved.