Interface DataDesensitization
-
- All Known Implementing Classes:
DefaultDataDesensitization
public interface DataDesensitizationThe extension interface is to encrypt the infos in DataBase and pageshow. To avoid the following behaviors: 1. change the using encryption method, which will cause the previous data can not be decrypted
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringdecrypt(java.lang.String encryptInfo)To decrypt the contents of the database Note: The decrypted information is for playback and only circulates inside arex if the information is not decrypted, it will cause the error of the replayjava.lang.Stringencrypt(java.lang.String info)To encrypt the contents of the database Note: The encryption method must be reversible encryption for playback
-
-
-
Method Detail
-
encrypt
java.lang.String encrypt(java.lang.String info) throws java.lang.ExceptionTo encrypt the contents of the database Note: The encryption method must be reversible encryption for playback- Parameters:
info- the contents of the database- Returns:
- the encrypted contents
- Throws:
java.lang.Exception
-
decrypt
java.lang.String decrypt(java.lang.String encryptInfo) throws java.lang.ExceptionTo decrypt the contents of the database Note: The decrypted information is for playback and only circulates inside arex if the information is not decrypted, it will cause the error of the replay- Parameters:
encryptInfo- the encrypted contents- Returns:
- the decrypted contents
- Throws:
java.lang.Exception
-
-