Modifier and Type | Field and Description |
---|---|
static CSRF.Spec |
DEFAULT |
static CSRF.Spec |
DUMB |
Modifier and Type | Method and Description |
---|---|
CSRF.Spec |
chain(CSRF.Spec next) |
void |
check(ActionContext context,
org.osgl.http.H.Session session)
Check CSRF token after session resolved
|
void |
preCheck(ActionContext context)
Do sanity check to see if CSRF token is present.
|
void |
setCookieAndRenderArgs(ActionContext context) |
public void preCheck(ActionContext context)
Do sanity check to see if CSRF token is present. This method is called before session resolved
context
- the current contextpublic void check(ActionContext context, org.osgl.http.H.Session session)
Check CSRF token after session resolved
context
- the current contextpublic void setCookieAndRenderArgs(ActionContext context)
Copyright © 2014–2018 ActFramework. All rights reserved.