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 java.lang.Object
Deprecated.as of 5.3.4This class/service is deprecated and should not be used any more. It will be removed in a future version.
-
-
Constructor Summary
Constructors Constructor Description ImpersonationRequestUtil()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Cookie
createCookie(java.lang.String id, java.lang.String sudo)
Deprecated.with no replacement.boolean
isImpersonated(HttpServletRequest request)
Deprecated.check "impersonator" attribute of the session to see whether the session is impersonated or not.
-
-
-
Method Detail
-
isImpersonated
@Deprecated public boolean isImpersonated(HttpServletRequest request)
Deprecated.check "impersonator" attribute of the session to see whether the session is impersonated or not.Returnstrue
if the JCR Session underlying the current request is impersonated. Otherwisefalse
is returned.false
is als returned if the request is not aSlingHttpServletRequest
or the request's resource resolver is not based on a JCR session.
-
createCookie
@Deprecated public Cookie createCookie(java.lang.String id, java.lang.String sudo)
Deprecated.with no replacement. To initiate impersonation send a request with the sudo request parameter set to the target user id.- Throws:
java.lang.UnsupportedOperationException
- because this is not implemented and supported any longer.
-
-