Class AuthTokenUtil
Object
com.liferay.portal.kernel.security.auth.AuthTokenUtil
- Author:
- Amos Fong, Peter Fellwock, Raymond Augé
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addCSRFToken
(javax.servlet.http.HttpServletRequest httpServletRequest, LiferayPortletURL liferayPortletURL) static void
addPortletInvocationToken
(javax.servlet.http.HttpServletRequest httpServletRequest, LiferayPortletURL liferayPortletURL) static void
checkCSRFToken
(javax.servlet.http.HttpServletRequest httpServletRequest, String origin) static String
getToken
(javax.servlet.http.HttpServletRequest httpServletRequest) static String
static boolean
isValidPortletInvocationToken
(javax.servlet.http.HttpServletRequest httpServletRequest, Layout layout, Portlet portlet)
-
Constructor Details
-
AuthTokenUtil
public AuthTokenUtil()
-
-
Method Details
-
addCSRFToken
public static void addCSRFToken(javax.servlet.http.HttpServletRequest httpServletRequest, LiferayPortletURL liferayPortletURL) -
addPortletInvocationToken
public static void addPortletInvocationToken(javax.servlet.http.HttpServletRequest httpServletRequest, LiferayPortletURL liferayPortletURL) -
checkCSRFToken
public static void checkCSRFToken(javax.servlet.http.HttpServletRequest httpServletRequest, String origin) throws PrincipalException - Throws:
PrincipalException
-
getToken
-
getToken
-
isValidPortletInvocationToken
-