|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.security.websudo.DefaultWebSudoManager
public class DefaultWebSudoManager
See WebSudoManager for further documentation.
| Constructor Summary | |
|---|---|
DefaultWebSudoManager(SettingsManager settingsManager)
|
|
| 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(String requestURI,
Class<? extends com.opensymphony.xwork.Action> actionClass,
Method method)
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 |
| Constructor Detail |
|---|
public DefaultWebSudoManager(SettingsManager settingsManager)
| Method Detail |
|---|
public boolean isEnabled()
isEnabled in interface WebSudoManager
public boolean matches(String requestURI,
Class<? extends com.opensymphony.xwork.Action> actionClass,
Method method)
WebSudoManager
matches in interface WebSudoManagerrequestURI - - the requestURI for this action methodactionClass - - the current action classmethod - - the action method that is executed
public boolean hasValidSession(javax.servlet.http.HttpSession session)
WebSudoManager
hasValidSession in interface WebSudoManagersession - the current HttpSession. Can be null
HttpSession is a WebSudo session.
public void startSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
WebSudoManagerHttpSession if necessary.
startSession in interface WebSudoManagerrequest - the current HttpServletRequestresponse - the current HttpServletResponsepublic void markWebSudoRequest(javax.servlet.http.HttpServletRequest request)
WebSudoManagerrequest as a request for a WebSudo resource.
markWebSudoRequest in interface WebSudoManagerrequest - the current HttpServletRequestpublic boolean isWebSudoRequest(javax.servlet.http.HttpServletRequest request)
WebSudoManagerrequest is a WebSudo request.
isWebSudoRequest in interface WebSudoManagerrequest - the current HttpServletRequest
public void invalidateSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
WebSudoManagerHttpSession.
invalidateSession in interface WebSudoManagerrequest - the current HttpServletRequestresponse - the current HttpServletResponse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||