Class WebSudoEnforcer
- java.lang.Object
-
- com.atlassian.confluence.impl.webapp.security.enforcer.WebSudoEnforcer
-
- All Implemented Interfaces:
SecurityEnforcer
public final class WebSudoEnforcer extends Object implements SecurityEnforcer
Enforces a WebSudo session for actions annotated byWebSudoRequired
. The lower level implementation is inWebSudoManager
.- Since:
- 8.8
-
-
Field Summary
-
Fields inherited from interface com.atlassian.confluence.impl.webapp.security.SecurityEnforcer
LOGIN_PATH, NOT_PERMITTED_PATH
-
-
Constructor Summary
Constructors Constructor Description WebSudoEnforcer(WebSudoManager webSudoManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enforce(ConfluenceUser user, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Enforcement action that should be taken whenSecurityEnforcer.shouldEnforce(com.atlassian.confluence.user.ConfluenceUser, com.atlassian.confluence.impl.webapp.security.MappedAction, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
returnstrue
.boolean
shouldEnforce(ConfluenceUser user, MappedAction mappedAction, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
-
-
Constructor Detail
-
WebSudoEnforcer
public WebSudoEnforcer(WebSudoManager webSudoManager)
-
-
Method Detail
-
shouldEnforce
public boolean shouldEnforce(ConfluenceUser user, MappedAction mappedAction, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
- Specified by:
shouldEnforce
in interfaceSecurityEnforcer
- Returns:
true
if arguments failed enforcement criteria andSecurityEnforcer.enforce(com.atlassian.confluence.user.ConfluenceUser, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
should be called.
-
enforce
public void enforce(ConfluenceUser user, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
Description copied from interface:SecurityEnforcer
Enforcement action that should be taken whenSecurityEnforcer.shouldEnforce(com.atlassian.confluence.user.ConfluenceUser, com.atlassian.confluence.impl.webapp.security.MappedAction, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
returnstrue
.- Specified by:
enforce
in interfaceSecurityEnforcer
- Throws:
IOException
-
-