public class CsrfActionInterceptor extends Object implements ActionInterceptor
| 限定符和类型 | 字段和说明 |
|---|---|
protected CsrfManager |
csrfManager |
protected SecurityConfig |
securityConfig |
| 构造器和说明 |
|---|
CsrfActionInterceptor() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
checkCsrfToken(Request request,
CsrfToken expected) |
protected String |
getCsrfTokenString(Request request) |
protected boolean |
isEnabled(ActionContext context) |
leap.lang.intercepting.State |
preExecuteAction(ActionContext context,
leap.core.validation.Validation validation) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompleteExecuteAction, onActionFailure, postExecuteAction, preResolveActionParametersprotected SecurityConfig securityConfig
protected CsrfManager csrfManager
public leap.lang.intercepting.State preExecuteAction(ActionContext context, leap.core.validation.Validation validation) throws Throwable
preExecuteAction 在接口中 ActionInterceptorThrowableprotected boolean isEnabled(ActionContext context)
protected void checkCsrfToken(Request request, CsrfToken expected) throws Throwable
ThrowableCopyright © 2019. All rights reserved.