public final class CSRFTokenManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CSRF_PARAM_NAME |
| Modifier and Type | Method and Description |
|---|---|
protected static java.lang.String |
generateToken()
Generates a new token
|
static java.lang.String |
getTokenForSession(HttpSession httpSession)
Returns the CSRF token for the provided httpSession
|
static java.lang.String |
getTokenFromRequest(HttpServletRequest httpServletRequest)
Returns the CSRF token from the httpServletRequest
|
public static final java.lang.String CSRF_PARAM_NAME
public static java.lang.String getTokenFromRequest(HttpServletRequest httpServletRequest)
httpServletRequest - the httpServletRequest to retrieve CSRF tokenprotected static java.lang.String generateToken()
public static java.lang.String getTokenForSession(HttpSession httpSession)
httpSession - the http sessionCopyright © 2018 SAP SE. All Rights Reserved.