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 voidaddCSRFToken(javax.servlet.http.HttpServletRequest httpServletRequest, LiferayPortletURL liferayPortletURL) static voidaddPortletInvocationToken(javax.servlet.http.HttpServletRequest httpServletRequest, LiferayPortletURL liferayPortletURL) static voidcheckCSRFToken(javax.servlet.http.HttpServletRequest httpServletRequest, String origin) static StringgetToken(javax.servlet.http.HttpServletRequest httpServletRequest) static Stringstatic booleanisValidPortletInvocationToken(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
-