com.atlassian.sal.confluence.websudo
Class ConfluenceWebSudoManager

java.lang.Object
  extended by com.atlassian.sal.confluence.websudo.ConfluenceWebSudoManager
All Implemented Interfaces:
com.atlassian.sal.api.websudo.WebSudoManager

public class ConfluenceWebSudoManager
extends Object
implements com.atlassian.sal.api.websudo.WebSudoManager

Confluence implementation of the SAL WebSudoManager.

This implementation delegates the canExecuteRequest(javax.servlet.http.HttpServletRequest) check to the existing WebSudoManager.

enforceWebSudoProtection(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) redirects to the Confluence authenticate.action that is used to validate the password of the currently logged in user.

Since:
3.4

Constructor Summary
ConfluenceWebSudoManager(SettingsManager settingsManager, WebSudoManager confluenceWebSudoManager)
           
 
Method Summary
 boolean canExecuteRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
          
 void enforceWebSudoProtection(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          
 void willExecuteWebSudoRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceWebSudoManager

public ConfluenceWebSudoManager(SettingsManager settingsManager,
                                WebSudoManager confluenceWebSudoManager)
Method Detail

canExecuteRequest

public boolean canExecuteRequest(javax.servlet.http.HttpServletRequest httpServletRequest)

Specified by:
canExecuteRequest in interface com.atlassian.sal.api.websudo.WebSudoManager

enforceWebSudoProtection

public void enforceWebSudoProtection(javax.servlet.http.HttpServletRequest request,
                                     javax.servlet.http.HttpServletResponse response)

Specified by:
enforceWebSudoProtection in interface com.atlassian.sal.api.websudo.WebSudoManager

willExecuteWebSudoRequest

public void willExecuteWebSudoRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
                               throws com.atlassian.sal.api.websudo.WebSudoSessionException

Specified by:
willExecuteWebSudoRequest in interface com.atlassian.sal.api.websudo.WebSudoManager
Throws:
com.atlassian.sal.api.websudo.WebSudoSessionException


Copyright © 2003-2012 Atlassian. All Rights Reserved.