public class SecurityHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
XSRF_TOKEN_NAME |
Constructor and Description |
---|
SecurityHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
checkXSRFToken(javax.servlet.http.HttpServletRequest request) |
static void |
checkXSRFToken(String xsrfToken,
javax.servlet.http.HttpServletRequest request) |
static String |
createXSRFToken(javax.servlet.http.HttpServletRequest request) |
static List<String> |
getAuthorities() |
static String |
getPrincipal() |
public static final String XSRF_TOKEN_NAME
public static String getPrincipal()
public static String createXSRFToken(javax.servlet.http.HttpServletRequest request) throws IOException
IOException
public static void checkXSRFToken(javax.servlet.http.HttpServletRequest request) throws Exception
request
- Exception
Copyright © 2011-2015 Appverse. All Rights Reserved.