java.lang.Object |
↳ |
com.atlassian.confluence.security.websudo.DefaultWebSudoManager |
Summary
Public Methods |
boolean
|
hasValidSession(HttpSession session)
Check if this is a valid WebSudo session.
|
void
|
invalidateSession(HttpServletRequest request, HttpServletResponse response)
Invalidate the current WebSudo session.
|
boolean
|
isEnabled()
|
boolean
|
isWebSudoRequest(HttpServletRequest request)
Checks if the request is a WebSudo request.
|
void
|
markWebSudoRequest(HttpServletRequest request)
Marks the request as a request for a WebSudo resource.
|
boolean
|
matches(String requestURI, Class<? extends Action> actionClass, Method method)
Check if the action method should be WebSudo protected for the given requestURI.
|
void
|
startSession(HttpServletRequest request, HttpServletResponse response)
Start a new WebSudo session.
|
[Expand]
Inherited Methods |
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
com.atlassian.confluence.security.websudo.WebSudoManager
boolean
|
hasValidSession(HttpSession session)
Check if this is a valid WebSudo session.
|
void
|
invalidateSession(HttpServletRequest request, HttpServletResponse response)
Invalidate the current WebSudo session.
|
boolean
|
isEnabled()
|
boolean
|
isWebSudoRequest(HttpServletRequest request)
Checks if the request is a WebSudo request.
|
void
|
markWebSudoRequest(HttpServletRequest request)
Marks the request as a request for a WebSudo resource.
|
boolean
|
matches(String requestURI, Class<? extends Action> actionClass, Method method)
Check if the action method should be WebSudo protected for the given requestURI.
|
void
|
startSession(HttpServletRequest request, HttpServletResponse response)
Start a new WebSudo session.
|
|
Public Constructors
Public Methods
public
boolean
hasValidSession
(HttpSession session)
Check if this is a valid WebSudo session.
Parameters
session
| the current javax.servlet.http.HttpSession. Can be null |
Returns
- true if the javax.servlet.http.HttpSession is a WebSudo session.
public
void
invalidateSession
(HttpServletRequest request, HttpServletResponse response)
Invalidate the current WebSudo session. This does NOT invalidate the javax.servlet.http.HttpSession.
Parameters
request
| the current javax.servlet.http.HttpServletRequest |
response
| the current javax.servlet.http.HttpServletResponse |
public
boolean
isEnabled
()
public
boolean
isWebSudoRequest
(HttpServletRequest request)
Checks if the request
is a WebSudo request.
Parameters
request
| the current javax.servlet.http.HttpServletRequest |
Returns
- true if the current request is requesting a WebSudo protected web resource, false otherwise.
public
void
markWebSudoRequest
(HttpServletRequest request)
Marks the request
as a request for a WebSudo resource.
Parameters
request
| the current javax.servlet.http.HttpServletRequest |
public
boolean
matches
(String requestURI, Class<? extends Action> actionClass, Method method)
Check if the action method should be WebSudo protected for the given requestURI.
Parameters
requestURI
| - the requestURI for this action method |
actionClass
| - the current action class |
method
| - the action method that is executed |
Returns
- true if the action method should be WebSudo protected, false otherwise.
public
void
startSession
(HttpServletRequest request, HttpServletResponse response)
Start a new WebSudo session. Creates a new javax.servlet.http.HttpSession if necessary.
Parameters
request
| the current javax.servlet.http.HttpServletRequest |
response
| the current javax.servlet.http.HttpServletResponse |