Package com.day.cq.security.util
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCookie(String id, String sudo) Deprecated.with no replacement.booleanisImpersonated(HttpServletRequest request) Deprecated.check "impersonator" attribute of the session to see whether the session is impersonated or not.
-
Constructor Details
-
ImpersonationRequestUtil
public ImpersonationRequestUtil()Deprecated.
-
-
Method Details
-
isImpersonated
Deprecated.check "impersonator" attribute of the session to see whether the session is impersonated or not.Returnstrueif the JCR Session underlying the current request is impersonated. Otherwisefalseis returned.falseis als returned if the request is not aSlingHttpServletRequestor the request's resource resolver is not based on a JCR session. -
createCookie
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.
-