public class DefaultCsrfTokenGenerator extends Object implements CsrfTokenGenerator
Constructor and Description |
---|
DefaultCsrfTokenGenerator() |
Modifier and Type | Method and Description |
---|---|
String |
get(WebContext context)
Get the CSRF token from the session or create it if it doesn't exist.
|
protected String |
getTokenFromSession(WebContext context) |
public String get(WebContext context)
CsrfTokenGenerator
get
in interface CsrfTokenGenerator
context
- the current web contextprotected String getTokenFromSession(WebContext context)
Copyright © 2019. All rights reserved.