接口 ISensitive
- 所有已知实现类:
DefaultSensitive,NoneSensitive
public interface ISensitive
敏感数据加解密接口
-
方法概要
-
方法详细资料
-
encrypt
保存时的加密方法- 参数:
bean- beanoriginal- 原文- 返回:
- 加密后的字符串
-
decrypt
查询时的解密方法- 参数:
bean- beanciphertext- 数据库存储的密文- 返回:
- 返回查询的方法
-
normal
不解密时返回的方法, 默认返回null替换密文- 参数:
bean- beanciphertext- 数据库存储的密文- 返回:
- 返回查询的方法
-