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 request,
com.liferay.portal.kernel.portlet.LiferayPortletURL liferayPortletURL) |
void |
addPortletInvocationToken(javax.servlet.http.HttpServletRequest request,
com.liferay.portal.kernel.portlet.LiferayPortletURL liferayPortletURL) |
void |
check(javax.servlet.http.HttpServletRequest request)
Deprecated.
As of Wilberforce (7.0.x)
|
void |
checkCSRFToken(javax.servlet.http.HttpServletRequest request,
String origin) |
protected String |
getSessionAuthenticationToken(javax.servlet.http.HttpServletRequest request,
String key,
boolean createToken) |
String |
getToken(javax.servlet.http.HttpServletRequest request) |
String |
getToken(javax.servlet.http.HttpServletRequest request,
long plid,
String portletId) |
boolean |
isValidPortletInvocationToken(javax.servlet.http.HttpServletRequest request,
com.liferay.portal.kernel.model.Layout layout,
com.liferay.portal.kernel.model.Portlet portlet) |
boolean |
isValidPortletInvocationToken(javax.servlet.http.HttpServletRequest request,
long plid,
String portletId,
String strutsAction,
String tokenValue)
Deprecated.
As of Wilberforce (7.0.x)
|
public void addCSRFToken(javax.servlet.http.HttpServletRequest request, com.liferay.portal.kernel.portlet.LiferayPortletURL liferayPortletURL)
addCSRFToken
in interface com.liferay.portal.kernel.security.auth.AuthToken
public void addPortletInvocationToken(javax.servlet.http.HttpServletRequest request, com.liferay.portal.kernel.portlet.LiferayPortletURL liferayPortletURL)
addPortletInvocationToken
in interface com.liferay.portal.kernel.security.auth.AuthToken
@Deprecated public void check(javax.servlet.http.HttpServletRequest request) throws com.liferay.portal.kernel.security.auth.PrincipalException
check
in interface com.liferay.portal.kernel.security.auth.AuthToken
com.liferay.portal.kernel.security.auth.PrincipalException
public void checkCSRFToken(javax.servlet.http.HttpServletRequest request, String origin) throws com.liferay.portal.kernel.security.auth.PrincipalException
checkCSRFToken
in interface com.liferay.portal.kernel.security.auth.AuthToken
com.liferay.portal.kernel.security.auth.PrincipalException
public String getToken(javax.servlet.http.HttpServletRequest request)
getToken
in interface com.liferay.portal.kernel.security.auth.AuthToken
public String getToken(javax.servlet.http.HttpServletRequest request, long plid, String portletId)
getToken
in interface com.liferay.portal.kernel.security.auth.AuthToken
public boolean isValidPortletInvocationToken(javax.servlet.http.HttpServletRequest request, com.liferay.portal.kernel.model.Layout layout, com.liferay.portal.kernel.model.Portlet portlet)
isValidPortletInvocationToken
in interface com.liferay.portal.kernel.security.auth.AuthToken
@Deprecated public boolean isValidPortletInvocationToken(javax.servlet.http.HttpServletRequest request, long plid, String portletId, String strutsAction, String tokenValue)
isValidPortletInvocationToken
in interface com.liferay.portal.kernel.security.auth.AuthToken
protected String getSessionAuthenticationToken(javax.servlet.http.HttpServletRequest request, String key, boolean createToken)