Class ImpersonationRequestUtil

java.lang.Object
com.day.cq.security.util.ImpersonationRequestUtil

@Deprecated @Service(ImpersonationRequestUtil.class) public class ImpersonationRequestUtil extends Object
Deprecated.
as of 5.3.4
This class/service is deprecated and should not be used any more. It will be removed in a future version.
  • Constructor Details

    • ImpersonationRequestUtil

      public ImpersonationRequestUtil()
      Deprecated.
  • Method Details

    • isImpersonated

      @Deprecated public boolean isImpersonated(HttpServletRequest request)
      Deprecated.
      check "impersonator" attribute of the session to see whether the session is impersonated or not.
      Returns true if the JCR Session underlying the current request is impersonated. Otherwise false is returned. false is als returned if the request is not a SlingHttpServletRequest or the request's resource resolver is not based on a JCR session.
    • createCookie

      @Deprecated public Cookie createCookie(String id, String sudo)
      Deprecated.
      with no replacement. To initiate impersonation send a request with the sudo request parameter set to the target user id.
      Throws:
      UnsupportedOperationException - because this is not implemented and supported any longer.