Annotation Interface NShield


@Documented @Target(FIELD) @Retention(RUNTIME) public @interface NShield
对json内的key_value进行脱敏/过滤
Since:
Java 17+
Author:
Kimi Liu
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    过滤对象
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    过滤属性
    包含属性
    需要脱敏的字段的数组
  • Element Details

    • type

      Class<?> type
      过滤对象
      Returns:
      对象信息
    • value

      Shield[] value
      需要脱敏的字段的数组
      Returns:
      返回结果
      Default:
      {}
    • include

      String include
      包含属性
      Returns:
      对象属性
      Default:
      ""
    • filter

      String filter
      过滤属性
      Returns:
      对象属性
      Default:
      ""