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 |
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) |
public static void addCSRFToken(javax.servlet.http.HttpServletRequest request, LiferayPortletURL liferayPortletURL)
public static void addPortletInvocationToken(javax.servlet.http.HttpServletRequest request, LiferayPortletURL liferayPortletURL)
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)