public interface WebSudoManager
Modifier and Type | Method and Description |
---|---|
boolean |
canExecuteRequest(javax.servlet.http.HttpServletRequest request)
Check whether this request can be executed.
|
void |
enforceWebSudoProtection(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Ensure that the current request is protected by a WebSudo session.
|
void |
willExecuteWebSudoRequest(javax.servlet.http.HttpServletRequest request)
Mark the current request as a request for a WebSudo protected resource.
|
boolean canExecuteRequest(javax.servlet.http.HttpServletRequest request)
request
- the current HttpServletRequest
true
if this request is protected by a WebSudo session or WebSudo is disabled, false
otherwise.void enforceWebSudoProtection(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
canExecuteRequest(javax.servlet.http.HttpServletRequest)
would return true).request
- the current HttpServletRequest
response
- the current HttpServletResponse
void willExecuteWebSudoRequest(javax.servlet.http.HttpServletRequest request) throws WebSudoSessionException
WebSudoSessionException
if the current request
is not protected by WebSudo.
This notifies the host application that the request
is a request for a WebSudp protected resource.request
- the current HttpServletRequest
WebSudoSessionException
- if the current request
is not protected by WebSudo.Copyright © 2015 Atlassian. All rights reserved.