Class DefaultDataDesensitization
- java.lang.Object
-
- com.arextest.extension.desensitization.DefaultDataDesensitization
-
- All Implemented Interfaces:
DataDesensitization
public class DefaultDataDesensitization extends java.lang.Object implements DataDesensitization
-
-
Constructor Summary
Constructors Constructor Description DefaultDataDesensitization()
-
Method Summary
All Methods Instance Methods Concrete 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
public java.lang.String encrypt(java.lang.String info) throws java.lang.ExceptionDescription copied from interface:DataDesensitizationTo encrypt the contents of the database Note: The encryption method must be reversible encryption for playback- Specified by:
encryptin interfaceDataDesensitization- Parameters:
info- the contents of the database- Returns:
- the encrypted contents
- Throws:
java.lang.Exception
-
decrypt
public java.lang.String decrypt(java.lang.String encryptInfo) throws java.lang.ExceptionDescription copied from interface:DataDesensitizationTo 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- Specified by:
decryptin interfaceDataDesensitization- Parameters:
encryptInfo- the encrypted contents- Returns:
- the decrypted contents
- Throws:
java.lang.Exception
-
-