public class CsrfTokenManagerDefaultImpl extends AbstractCsrfTokenManager
CsrfTokenManager. It generates a UUID| Constructor and Description |
|---|
CsrfTokenManagerDefaultImpl()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CsrfToken |
generateInitialToken()
This method generates a new
CsrfToken for the initial "log-in" of a user. |
private CsrfToken |
generateNewToken() |
protected javax.servlet.http.HttpSession |
getSession() |
generateUpdateToken, isValidToken, validateTokencreateLogger, doInitialize, getLoggerdoInitialized, getInitializationState, initializepublic CsrfTokenManagerDefaultImpl()
public CsrfToken generateInitialToken()
CsrfToken for the initial "log-in" of a user. Here are some examples
of possible implementation strategies:
UUID.
The token is also stored in the server-side HTTP session so it can be compared for
validation.validation can decrypt the token, split the aspects and verify them.
Security.Random to generate security tokens as this is too weak.CsrfToken. Shall not be null.protected javax.servlet.http.HttpSession getSession()
HttpSession or null if no request context is available.Copyright © 2001–2016 mmm-Team. All rights reserved.