Class SaFirewallCheckHookForHeader

java.lang.Object
cn.dev33.satoken.strategy.hooks.SaFirewallCheckHookForHeader
All Implemented Interfaces:
SaFirewallCheckHook

public class SaFirewallCheckHookForHeader extends Object implements SaFirewallCheckHook
防火墙策略校验钩子函数:请求头检测
Since:
1.41.0
Author:
click33
  • Field Details

  • Constructor Details

    • SaFirewallCheckHookForHeader

      public SaFirewallCheckHookForHeader()
  • Method Details

    • resetConfig

      public void resetConfig(String... notAllowHeaderNames)
      配置
      Parameters:
      notAllowHeaderNames - 不允许的请求头列表 (先清空原来的,再添加上新的)
    • execute

      public void execute(SaRequest req, SaResponse res, Object extArg)
      执行的方法
      Specified by:
      execute in interface SaFirewallCheckHook
      Parameters:
      req - 请求对象
      res - 响应对象
      extArg - 预留扩展参数