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