|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.security.websudo.InternalWebSudoManagerImpl
public class InternalWebSudoManagerImpl
| Field Summary | |
|---|---|
static String |
WEBSUDO
|
| Constructor Summary | |
|---|---|
InternalWebSudoManagerImpl(ApplicationProperties applicationProperties)
|
|
| Method Summary | |
|---|---|
boolean |
hasValidSession(javax.servlet.http.HttpSession session)
Check if this is a valid WebSudo session. |
void |
invalidateSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Invalidate the current WebSudo session. |
boolean |
isEnabled()
|
boolean |
isWebSudoRequest(javax.servlet.http.HttpServletRequest request)
Checks if the request is a WebSudo request. |
void |
markWebSudoRequest(javax.servlet.http.HttpServletRequest request)
Marks the request as a request for a WebSudo resource. |
boolean |
matches(Class<? extends webwork.action.Action> actionClass)
Check if the action method should be WebSudo protected for the given requestURI. |
void |
startSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Start a new WebSudo session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String WEBSUDO
| Constructor Detail |
|---|
public InternalWebSudoManagerImpl(ApplicationProperties applicationProperties)
| Method Detail |
|---|
public boolean isEnabled()
isEnabled in interface InternalWebSudoManagerpublic boolean matches(Class<? extends webwork.action.Action> actionClass)
InternalWebSudoManager
matches in interface InternalWebSudoManageractionClass - - the current action class
public boolean hasValidSession(@Nullable
javax.servlet.http.HttpSession session)
InternalWebSudoManager
hasValidSession in interface InternalWebSudoManagersession - the current HttpSession. Can be null
HttpSession is a WebSudo session.
public boolean isWebSudoRequest(@Nullable
javax.servlet.http.HttpServletRequest request)
InternalWebSudoManagerrequest is a WebSudo request.
isWebSudoRequest in interface InternalWebSudoManagerrequest - the current HttpServletRequest
public void startSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
InternalWebSudoManagerHttpSession if necessary.
startSession in interface InternalWebSudoManagerrequest - the current HttpServletRequestresponse - the current HttpServletResponse
public void markWebSudoRequest(@Nullable
javax.servlet.http.HttpServletRequest request)
InternalWebSudoManagerrequest as a request for a WebSudo resource.
markWebSudoRequest in interface InternalWebSudoManagerrequest - the current HttpServletRequest
public void invalidateSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
InternalWebSudoManagerHttpSession.
invalidateSession in interface InternalWebSudoManagerrequest - the current HttpServletRequestresponse - the current HttpServletResponse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||