java.lang.Object |
↳ |
org.springframework.web.filter.GenericFilterBean |
|
↳ |
org.springframework.security.web.authentication.logout.LogoutFilter |
Class Overview
Logs a principal out.
Polls a series of LogoutHandler
s. The handlers should be specified in the order they are required.
Generally you will want to call logout handlers TokenBasedRememberMeServices
and
SecurityContextLogoutHandler
(in that order).
After logout, a redirect will be performed to the URL determined by either the configured
LogoutSuccessHandler or the logoutSuccessUrl, depending on which constructor was used.
Summary
[Expand]
Inherited Fields |
From class
org.springframework.web.filter.GenericFilterBean
protected
final
Log |
logger |
|
|
[Expand]
Inherited Methods |
From class
org.springframework.web.filter.GenericFilterBean
final
void
|
addRequiredProperty(String arg0)
|
void
|
afterPropertiesSet()
|
void
|
destroy()
|
final
FilterConfig
|
getFilterConfig()
|
final
String
|
getFilterName()
|
final
ServletContext
|
getServletContext()
|
final
void
|
init(FilterConfig arg0)
|
void
|
initBeanWrapper(BeanWrapper arg0)
|
void
|
initFilterBean()
|
final
void
|
setBeanName(String arg0)
|
final
void
|
setFilterConfig(FilterConfig arg0)
|
final
void
|
setServletContext(ServletContext arg0)
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
javax.servlet.Filter
abstract
void
|
destroy()
|
abstract
void
|
doFilter(ServletRequest arg0, ServletResponse arg1, FilterChain arg2)
|
abstract
void
|
init(FilterConfig arg0)
|
|
From interface
org.springframework.beans.factory.BeanNameAware
abstract
void
|
setBeanName(String arg0)
|
|
From interface
org.springframework.beans.factory.DisposableBean
|
From interface
org.springframework.beans.factory.InitializingBean
abstract
void
|
afterPropertiesSet()
|
|
From interface
org.springframework.web.context.ServletContextAware
abstract
void
|
setServletContext(ServletContext arg0)
|
|
Public Constructors
Constructor which takes a LogoutSuccessHandler instance to determine the target destination
after logging out. The list of LogoutHandlers are intended to perform the actual logout functionality
(such as clearing the security context, invalidating the session, etc.).
Public Methods
public
void
doFilter
(ServletRequest req, ServletResponse res, FilterChain chain)
public
void
setFilterProcessesUrl
(String filterProcessesUrl)
Protected Methods
protected
String
getFilterProcessesUrl
()
protected
boolean
requiresLogout
(HttpServletRequest request, HttpServletResponse response)
Allow subclasses to modify when a logout should take place.
Parameters
request
| the request |
response
| the response |
Returns
true
if logout should occur, false
otherwise