Package cn.dev33.satoken.strategy.hooks
Class SaFirewallCheckHookForParameter
java.lang.Object
cn.dev33.satoken.strategy.hooks.SaFirewallCheckHookForParameter
- All Implemented Interfaces:
SaFirewallCheckHook
防火墙策略校验钩子函数:请求参数检测
- Since:
- 1.41.0
- Author:
- click33
-
Field Summary
FieldsModifier and TypeFieldDescription默认实例不允许的请求参数列表 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(SaRequest req, SaResponse res, Object extArg) 执行的方法voidresetConfig(String... notAllowParameterNames) 配置
-
Field Details
-
instance
默认实例 -
notAllowParameterNames
不允许的请求参数列表
-
-
Constructor Details
-
SaFirewallCheckHookForParameter
public SaFirewallCheckHookForParameter()
-
-
Method Details
-
resetConfig
配置- Parameters:
notAllowParameterNames- 不允许的请求参数列表 (先清空原来的,再添加上新的)
-
execute
执行的方法- Specified by:
executein interfaceSaFirewallCheckHook- Parameters:
req- 请求对象res- 响应对象extArg- 预留扩展参数
-