Liferay 7.0-ce-m3

com.liferay.portal.security.auth
Class AuthTokenUtil

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

public class AuthTokenUtil
extends Object


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 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

check

@Deprecated
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

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)

Liferay 7.0-ce-m3