public class InternalWebSudoManagerImpl extends Object implements InternalWebSudoManager
Constructor and Description |
---|
InternalWebSudoManagerImpl(ApplicationProperties applicationProperties,
WebsudoAuditHandler websudoAuditHandler) |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final String WEBSUDO
public InternalWebSudoManagerImpl(ApplicationProperties applicationProperties, WebsudoAuditHandler websudoAuditHandler)
public boolean isEnabled()
isEnabled
in interface InternalWebSudoManager
public boolean matches(Class<? extends webwork.action.Action> actionClass)
InternalWebSudoManager
matches
in interface InternalWebSudoManager
actionClass
- - the current action classpublic boolean hasValidSession(@Nullable javax.servlet.http.HttpSession session)
InternalWebSudoManager
hasValidSession
in interface InternalWebSudoManager
session
- the current HttpSession
. Can be nullHttpSession
is a WebSudo session.public boolean isWebSudoRequest(@Nullable javax.servlet.http.HttpServletRequest request)
InternalWebSudoManager
request
is a WebSudo request.isWebSudoRequest
in interface InternalWebSudoManager
request
- the current HttpServletRequest
public void startSession(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
InternalWebSudoManager
HttpSession
if necessary.startSession
in interface InternalWebSudoManager
request
- the current HttpServletRequest
response
- the current HttpServletResponse
public void markWebSudoRequest(@Nullable javax.servlet.http.HttpServletRequest request)
InternalWebSudoManager
request
as a request for a WebSudo resource.markWebSudoRequest
in interface InternalWebSudoManager
request
- the current HttpServletRequest
public void invalidateSession(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
InternalWebSudoManager
HttpSession
.invalidateSession
in interface InternalWebSudoManager
request
- the current HttpServletRequest
response
- the current HttpServletResponse
Copyright © 2002-2021 Atlassian. All Rights Reserved.