com.liferay.portal.security.auth
Class SessionAuthToken
java.lang.Object
com.liferay.portal.security.auth.SessionAuthToken
- All Implemented Interfaces:
- AuthToken
public class SessionAuthToken
- extends Object
- implements AuthToken
|
Method Summary |
void |
addCSRFToken(javax.servlet.http.HttpServletRequest request,
LiferayPortletURL liferayPortletURL)
|
void |
addPortletInvocationToken(javax.servlet.http.HttpServletRequest request,
LiferayPortletURL liferayPortletURL)
|
void |
check(javax.servlet.http.HttpServletRequest request)
Deprecated. As of 7.0.0 |
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,
Layout layout,
Portlet portlet)
|
boolean |
isValidPortletInvocationToken(javax.servlet.http.HttpServletRequest request,
long plid,
String portletId,
String strutsAction,
String tokenValue)
Deprecated. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionAuthToken
public SessionAuthToken()
addCSRFToken
public void addCSRFToken(javax.servlet.http.HttpServletRequest request,
LiferayPortletURL liferayPortletURL)
- Specified by:
addCSRFToken in interface AuthToken
addPortletInvocationToken
public void addPortletInvocationToken(javax.servlet.http.HttpServletRequest request,
LiferayPortletURL liferayPortletURL)
- Specified by:
addPortletInvocationToken in interface AuthToken
check
@Deprecated
public void check(javax.servlet.http.HttpServletRequest request)
throws PrincipalException
- Deprecated. As of 7.0.0
- Specified by:
check in interface AuthToken
- Throws:
PrincipalException
checkCSRFToken
public void checkCSRFToken(javax.servlet.http.HttpServletRequest request,
String origin)
throws PrincipalException
- Specified by:
checkCSRFToken in interface AuthToken
- Throws:
PrincipalException
getToken
public String getToken(javax.servlet.http.HttpServletRequest request)
- Specified by:
getToken in interface AuthToken
getToken
public String getToken(javax.servlet.http.HttpServletRequest request,
long plid,
String portletId)
- Specified by:
getToken in interface AuthToken
isValidPortletInvocationToken
public boolean isValidPortletInvocationToken(javax.servlet.http.HttpServletRequest request,
Layout layout,
Portlet portlet)
- Specified by:
isValidPortletInvocationToken in interface AuthToken
isValidPortletInvocationToken
@Deprecated
public boolean isValidPortletInvocationToken(javax.servlet.http.HttpServletRequest request,
long plid,
String portletId,
String strutsAction,
String tokenValue)
- Deprecated.
- Specified by:
isValidPortletInvocationToken in interface AuthToken
getSessionAuthenticationToken
protected String getSessionAuthenticationToken(javax.servlet.http.HttpServletRequest request,
String key,
boolean createToken)