public interface CsrfTokenRepository
Note that the tokens should be generated in safe way - that means they should not be guessable.
| Modifier and Type | Method and Description |
|---|---|
CsrfToken |
generateToken() |
CsrfToken |
loadToken()
Loads the expected
CsrfToken from the HttpServletRequest |
void |
saveToken(CsrfToken token)
|
CsrfToken generateToken()
void saveToken(CsrfToken token)
CsrfToken using the HttpServletRequest and HttpServletResponse. If the
CsrfToken is null, it is the same as deleting it.token - the CsrfToken to save or null to deleteCopyright © 2013–2021 Porsche Informatik. All rights reserved.