Package com.liferay.portal.security.auth
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCSRFToken
(javax.servlet.http.HttpServletRequest httpServletRequest, com.liferay.portal.kernel.portlet.LiferayPortletURL liferayPortletURL) void
addPortletInvocationToken
(javax.servlet.http.HttpServletRequest httpServletRequest, com.liferay.portal.kernel.portlet.LiferayPortletURL liferayPortletURL) void
checkCSRFToken
(javax.servlet.http.HttpServletRequest httpServletRequest, String origin) protected String
getSessionAuthenticationToken
(javax.servlet.http.HttpServletRequest httpServletRequest, String key, boolean createToken) getToken
(javax.servlet.http.HttpServletRequest httpServletRequest) boolean
isValidPortletInvocationToken
(javax.servlet.http.HttpServletRequest httpServletRequest, com.liferay.portal.kernel.model.Layout layout, com.liferay.portal.kernel.model.Portlet portlet)
-
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 interfacecom.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 interfacecom.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 interfacecom.liferay.portal.kernel.security.auth.AuthToken
- Throws:
com.liferay.portal.kernel.security.auth.PrincipalException
-
getToken
- Specified by:
getToken
in interfacecom.liferay.portal.kernel.security.auth.AuthToken
-
getToken
public String getToken(javax.servlet.http.HttpServletRequest httpServletRequest, long plid, String portletId) - Specified by:
getToken
in interfacecom.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 interfacecom.liferay.portal.kernel.security.auth.AuthToken
-
getSessionAuthenticationToken
-