public class JiraUserSessionInvalidator extends Object
It will use JiraUserSessionTracker
to track invalidated sessions to invalidate them during next request using given session.
It is intended to be used by filter that runs before any authentication filter
and invalidates HttpSession
for current request if it is marked as invalidated.
It uses JiraUserSessionTracker
to check for sessions and invalidation flag.
JiraLoginFilter
Constructor and Description |
---|
JiraUserSessionInvalidator() |
Modifier and Type | Method and Description |
---|---|
void |
handleSessionInvalidation(javax.servlet.http.HttpServletRequest request)
Will invalidate session passed in argument if it's id was marked as invalid.
|
void |
invalidateSession(String sessionId)
Mark id of session as invalid to invalidate session with this id next time it is used in request.
|
void |
onUserCredentialUpdatedEvent(com.atlassian.crowd.event.user.UserCredentialUpdatedEvent event) |
void |
removeInvalidationFlagFromSession(javax.servlet.http.HttpServletRequest httpServletRequest)
Removes invalidation flag from given session.
|
public void handleSessionInvalidation(javax.servlet.http.HttpServletRequest request)
request
- current ServletRequestpublic void invalidateSession(String sessionId)
sessionId
- - id of session to be invalidatedhandleSessionInvalidation(javax.servlet.http.HttpServletRequest)
public void removeInvalidationFlagFromSession(javax.servlet.http.HttpServletRequest httpServletRequest)
httpServletRequest
- session which invalidation flag should be removed@EventListener public void onUserCredentialUpdatedEvent(com.atlassian.crowd.event.user.UserCredentialUpdatedEvent event)
Copyright © 2002-2017 Atlassian. All Rights Reserved.