public class SessionAuthToken
extends Object
implements com.liferay.portal.kernel.security.auth.AuthToken
| Constructor and Description |
|---|
SessionAuthToken() |
| Modifier and Type | Method and Description |
|---|---|
void |
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) |
String |
getToken(javax.servlet.http.HttpServletRequest httpServletRequest) |
String |
getToken(javax.servlet.http.HttpServletRequest httpServletRequest,
long plid,
String portletId) |
boolean |
isValidPortletInvocationToken(javax.servlet.http.HttpServletRequest httpServletRequest,
com.liferay.portal.kernel.model.Layout layout,
com.liferay.portal.kernel.model.Portlet portlet) |
public void addCSRFToken(javax.servlet.http.HttpServletRequest httpServletRequest,
com.liferay.portal.kernel.portlet.LiferayPortletURL liferayPortletURL)
addCSRFToken in interface com.liferay.portal.kernel.security.auth.AuthTokenpublic void addPortletInvocationToken(javax.servlet.http.HttpServletRequest httpServletRequest,
com.liferay.portal.kernel.portlet.LiferayPortletURL liferayPortletURL)
addPortletInvocationToken in interface com.liferay.portal.kernel.security.auth.AuthTokenpublic void checkCSRFToken(javax.servlet.http.HttpServletRequest httpServletRequest,
String origin)
throws com.liferay.portal.kernel.security.auth.PrincipalException
checkCSRFToken in interface com.liferay.portal.kernel.security.auth.AuthTokencom.liferay.portal.kernel.security.auth.PrincipalExceptionpublic String getToken(javax.servlet.http.HttpServletRequest httpServletRequest)
getToken in interface com.liferay.portal.kernel.security.auth.AuthTokenpublic String getToken(javax.servlet.http.HttpServletRequest httpServletRequest,
long plid,
String portletId)
getToken in interface com.liferay.portal.kernel.security.auth.AuthTokenpublic boolean isValidPortletInvocationToken(javax.servlet.http.HttpServletRequest httpServletRequest,
com.liferay.portal.kernel.model.Layout layout,
com.liferay.portal.kernel.model.Portlet portlet)
isValidPortletInvocationToken in interface com.liferay.portal.kernel.security.auth.AuthTokenprotected String getSessionAuthenticationToken(javax.servlet.http.HttpServletRequest httpServletRequest,
String key,
boolean createToken)