public class SessionCsrfTokenRepository extends Object implements CsrfTokenRepository
CsrfTokenRepository that stores the CsrfToken in the HTTP session.| Constructor and Description |
|---|
SessionCsrfTokenRepository(org.apache.tapestry5.services.ApplicationStateManager applicationStateManager) |
| Modifier and Type | Method and Description |
|---|---|
CsrfToken |
generateToken() |
CsrfToken |
loadToken()
Loads the expected
CsrfToken from the HttpServletRequest |
void |
saveToken(CsrfToken token)
|
public SessionCsrfTokenRepository(org.apache.tapestry5.services.ApplicationStateManager applicationStateManager)
applicationStateManager - .public CsrfToken generateToken()
generateToken in interface CsrfTokenRepositorypublic CsrfToken loadToken()
CsrfTokenRepositoryCsrfToken from the HttpServletRequestloadToken in interface CsrfTokenRepositoryCsrfToken or null if none existspublic void saveToken(CsrfToken token)
CsrfTokenRepositoryCsrfToken using the HttpServletRequest and HttpServletResponse. If the
CsrfToken is null, it is the same as deleting it.saveToken in interface CsrfTokenRepositorytoken - the CsrfToken to save or null to deleteCopyright © 2013–2021 Porsche Informatik. All rights reserved.