public class AuthTokenUtil
extends Object
Constructor and Description |
---|
AuthTokenUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addCSRFToken(javax.servlet.http.HttpServletRequest request,
LiferayPortletURL liferayPortletURL) |
static void |
addPortletInvocationToken(javax.servlet.http.HttpServletRequest request,
LiferayPortletURL liferayPortletURL) |
static void |
check(javax.servlet.http.HttpServletRequest request)
Deprecated.
As of Wilberforce (7.0.x), replaced by
checkCSRFToken(HttpServletRequest, String) |
static void |
checkCSRFToken(javax.servlet.http.HttpServletRequest request,
String origin) |
static String |
getToken(javax.servlet.http.HttpServletRequest request) |
static String |
getToken(javax.servlet.http.HttpServletRequest request,
long plid,
String portletId) |
static boolean |
isValidPortletInvocationToken(javax.servlet.http.HttpServletRequest request,
Layout layout,
Portlet portlet) |
static boolean |
isValidPortletInvocationToken(javax.servlet.http.HttpServletRequest request,
long plid,
String portletId,
String strutsAction,
String tokenValue)
Deprecated.
As of Wilberforce (7.0.x), replaced by
isValidPortletInvocationToken(HttpServletRequest, Layout,
Portlet) |
public static void addCSRFToken(javax.servlet.http.HttpServletRequest request, LiferayPortletURL liferayPortletURL)
public static void addPortletInvocationToken(javax.servlet.http.HttpServletRequest request, LiferayPortletURL liferayPortletURL)
@Deprecated public static void check(javax.servlet.http.HttpServletRequest request) throws PortalException
checkCSRFToken(HttpServletRequest, String)
PortalException
public static void checkCSRFToken(javax.servlet.http.HttpServletRequest request, String origin) throws PrincipalException
PrincipalException
public static String getToken(javax.servlet.http.HttpServletRequest request)
public static String getToken(javax.servlet.http.HttpServletRequest request, long plid, String portletId)
public static boolean isValidPortletInvocationToken(javax.servlet.http.HttpServletRequest request, Layout layout, Portlet portlet)
@Deprecated public static boolean isValidPortletInvocationToken(javax.servlet.http.HttpServletRequest request, long plid, String portletId, String strutsAction, String tokenValue)
isValidPortletInvocationToken(HttpServletRequest, Layout,
Portlet)