|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectegovframework.rfc3.iam.security.authentication.logout.SecurityContextLogoutHandler
public class SecurityContextLogoutHandler
Performs a logout by modifying the SecurityContextHolder.
Will also invalidate the HttpSession if isInvalidateHttpSession() is true and the
session is not null.
| Constructor Summary | |
|---|---|
SecurityContextLogoutHandler()
|
|
| Method Summary | |
|---|---|
boolean |
isInvalidateHttpSession()
|
void |
logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication)
Requires the request to be passed in. |
void |
setInvalidateHttpSession(boolean invalidateHttpSession)
Causes the HttpSession to be invalidated when this LogoutHandler is invoked. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SecurityContextLogoutHandler()
| Method Detail |
|---|
public void logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication)
logout in interface org.springframework.security.web.authentication.logout.LogoutHandlerrequest - from which to obtain a HTTP session (cannot be null)response - not used (can be null)authentication - not used (can be null)public boolean isInvalidateHttpSession()
public void setInvalidateHttpSession(boolean invalidateHttpSession)
HttpSession to be invalidated when this LogoutHandler is invoked. Defaults to true.
invalidateHttpSession - true if you wish the session to be invalidated (default) or false if it should
not be.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||