Liferay 6.2-ce-ga5

com.liferay.portal.security.auth
Class AuthTokenUtil

java.lang.Object
  extended by com.liferay.portal.security.auth.AuthTokenUtil

public class AuthTokenUtil
extends Object


Constructor Summary
AuthTokenUtil()
           
 
Method Summary
static void check(javax.servlet.http.HttpServletRequest request)
          Deprecated. As of 6.2.0, replaced by checkCSRFToken(HttpServletRequest, String)
static void checkCSRFToken(javax.servlet.http.HttpServletRequest request, String origin)
           
static AuthToken getAuthToken()
           
static String getToken(javax.servlet.http.HttpServletRequest request)
           
static String getToken(javax.servlet.http.HttpServletRequest request, long plid, String portletId)
           
static boolean isValidPortletInvocationToken(javax.servlet.http.HttpServletRequest request, long plid, String portletId, String strutsAction, String tokenValue)
           
 void setAuthToken(AuthToken authToken)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthTokenUtil

public AuthTokenUtil()
Method Detail

check

public static void check(javax.servlet.http.HttpServletRequest request)
                  throws PortalException
Deprecated. As of 6.2.0, replaced by checkCSRFToken(HttpServletRequest, String)

Throws:
PortalException

checkCSRFToken

public static void checkCSRFToken(javax.servlet.http.HttpServletRequest request,
                                  String origin)
                           throws PrincipalException
Throws:
PrincipalException

getAuthToken

public static AuthToken getAuthToken()

getToken

public static String getToken(javax.servlet.http.HttpServletRequest request)

getToken

public static String getToken(javax.servlet.http.HttpServletRequest request,
                              long plid,
                              String portletId)

isValidPortletInvocationToken

public static boolean isValidPortletInvocationToken(javax.servlet.http.HttpServletRequest request,
                                                    long plid,
                                                    String portletId,
                                                    String strutsAction,
                                                    String tokenValue)

setAuthToken

public void setAuthToken(AuthToken authToken)

Liferay 6.2-ce-ga5