|
@@ -29,6 +29,15 @@ public class SensitiveHandler extends JsonSerializer<String> implements Contextu
|
|
|
private final String[] roleKey;
|
|
private final String[] roleKey;
|
|
|
private final String[] perms;
|
|
private final String[] perms;
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 提供给 jackson 创建上下文序列化器时使用 不然会报错
|
|
|
|
|
+ */
|
|
|
|
|
+ public SensitiveHandler() {
|
|
|
|
|
+ this.strategy = null;
|
|
|
|
|
+ this.roleKey = null;
|
|
|
|
|
+ this.perms = null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public SensitiveHandler(SensitiveStrategy strategy, String[] strings, String[] perms) {
|
|
public SensitiveHandler(SensitiveStrategy strategy, String[] strings, String[] perms) {
|
|
|
this.strategy = strategy;
|
|
this.strategy = strategy;
|
|
|
this.roleKey = strings;
|
|
this.roleKey = strings;
|