Class SessionAuthToken

Object
com.liferay.portal.security.auth.SessionAuthToken
All Implemented Interfaces:
com.liferay.portal.kernel.security.auth.AuthToken

public class SessionAuthToken extends Object implements com.liferay.portal.kernel.security.auth.AuthToken
Author:
Amos Fong
  • Constructor Details

    • SessionAuthToken

      public SessionAuthToken()
  • Method Details

    • addCSRFToken

      public void addCSRFToken(javax.servlet.http.HttpServletRequest httpServletRequest, com.liferay.portal.kernel.portlet.LiferayPortletURL liferayPortletURL)
      Specified by:
      addCSRFToken in interface com.liferay.portal.kernel.security.auth.AuthToken
    • addPortletInvocationToken

      public void addPortletInvocationToken(javax.servlet.http.HttpServletRequest httpServletRequest, com.liferay.portal.kernel.portlet.LiferayPortletURL liferayPortletURL)
      Specified by:
      addPortletInvocationToken in interface com.liferay.portal.kernel.security.auth.AuthToken
    • checkCSRFToken

      public void checkCSRFToken(javax.servlet.http.HttpServletRequest httpServletRequest, String origin) throws com.liferay.portal.kernel.security.auth.PrincipalException
      Specified by:
      checkCSRFToken in interface com.liferay.portal.kernel.security.auth.AuthToken
      Throws:
      com.liferay.portal.kernel.security.auth.PrincipalException
    • getToken

      public String getToken(javax.servlet.http.HttpServletRequest httpServletRequest)
      Specified by:
      getToken in interface com.liferay.portal.kernel.security.auth.AuthToken
    • getToken

      public String getToken(javax.servlet.http.HttpServletRequest httpServletRequest, long plid, String portletId)
      Specified by:
      getToken in interface com.liferay.portal.kernel.security.auth.AuthToken
    • isValidPortletInvocationToken

      public boolean isValidPortletInvocationToken(javax.servlet.http.HttpServletRequest httpServletRequest, com.liferay.portal.kernel.model.Layout layout, com.liferay.portal.kernel.model.Portlet portlet)
      Specified by:
      isValidPortletInvocationToken in interface com.liferay.portal.kernel.security.auth.AuthToken
    • getSessionAuthenticationToken

      protected String getSessionAuthenticationToken(javax.servlet.http.HttpServletRequest httpServletRequest, String key, boolean createToken)