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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addCSRFToken(jakarta.servlet.http.HttpServletRequest httpServletRequest, com.liferay.portal.kernel.portlet.LiferayPortletURL liferayPortletURL)
     
    void
    addPortletInvocationToken(jakarta.servlet.http.HttpServletRequest httpServletRequest, com.liferay.portal.kernel.portlet.LiferayPortletURL liferayPortletURL)
     
    void
    checkCSRFToken(jakarta.servlet.http.HttpServletRequest httpServletRequest, String origin)
     
    protected String
    getSessionAuthenticationToken(jakarta.servlet.http.HttpServletRequest httpServletRequest, String key, boolean createToken)
     
    getToken(jakarta.servlet.http.HttpServletRequest httpServletRequest)
     
    getToken(jakarta.servlet.http.HttpServletRequest httpServletRequest, long plid, String portletId)
     
    boolean
    isValidPortletInvocationToken(jakarta.servlet.http.HttpServletRequest httpServletRequest, com.liferay.portal.kernel.model.Layout layout, com.liferay.portal.kernel.model.Portlet portlet)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SessionAuthToken

      public SessionAuthToken()
  • Method Details

    • addCSRFToken

      public void addCSRFToken(jakarta.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(jakarta.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(jakarta.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(jakarta.servlet.http.HttpServletRequest httpServletRequest)
      Specified by:
      getToken in interface com.liferay.portal.kernel.security.auth.AuthToken
    • getToken

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

      public boolean isValidPortletInvocationToken(jakarta.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(jakarta.servlet.http.HttpServletRequest httpServletRequest, String key, boolean createToken)