Class AuthTokenUtil

Object
com.liferay.portal.kernel.security.auth.AuthTokenUtil

public class AuthTokenUtil extends Object
Author:
Amos Fong, Peter Fellwock, Raymond Augé
  • 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

      public static String getToken(javax.servlet.http.HttpServletRequest httpServletRequest)
    • getToken

      public static String getToken(javax.servlet.http.HttpServletRequest httpServletRequest, long plid, String portletId)
    • isValidPortletInvocationToken

      public static boolean isValidPortletInvocationToken(javax.servlet.http.HttpServletRequest httpServletRequest, Layout layout, Portlet portlet)