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 TypeMethodDescriptionvoidaddCSRFToken(javax.servlet.http.HttpServletRequest httpServletRequest, com.liferay.portal.kernel.portlet.LiferayPortletURL liferayPortletURL) voidaddPortletInvocationToken(javax.servlet.http.HttpServletRequest httpServletRequest, com.liferay.portal.kernel.portlet.LiferayPortletURL liferayPortletURL) voidcheckCSRFToken(javax.servlet.http.HttpServletRequest httpServletRequest, String origin) protected StringgetSessionAuthenticationToken(javax.servlet.http.HttpServletRequest httpServletRequest, String key, boolean createToken) getToken(javax.servlet.http.HttpServletRequest httpServletRequest) booleanisValidPortletInvocationToken(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:
addCSRFTokenin 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:
addPortletInvocationTokenin 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:
checkCSRFTokenin interfacecom.liferay.portal.kernel.security.auth.AuthToken- Throws:
com.liferay.portal.kernel.security.auth.PrincipalException
-
getToken
- Specified by:
getTokenin interfacecom.liferay.portal.kernel.security.auth.AuthToken
-
getToken
public String getToken(javax.servlet.http.HttpServletRequest httpServletRequest, long plid, String portletId) - Specified by:
getTokenin 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:
isValidPortletInvocationTokenin interfacecom.liferay.portal.kernel.security.auth.AuthToken
-
getSessionAuthenticationToken
-