Package org.qubership.atp.mia.utils
Class CryptoUtils
java.lang.Object
org.qubership.atp.mia.utils.CryptoUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdecryptValue(String textToDecrypt) Decrypt text if encrypted.static StringencryptValue(String textToEncrypt) Encrypt text if not encrypted.voidinit()voidinitForTest(org.qubership.atp.crypt.api.Decryptor decryptor, org.qubership.atp.crypt.api.Encryptor encryptor) For test usage.
-
Constructor Details
-
CryptoUtils
public CryptoUtils()
-
-
Method Details
-
decryptValue
Decrypt text if encrypted.- Parameters:
textToDecrypt- text to decrypt- Returns:
- decrypted text
-
encryptValue
Encrypt text if not encrypted.- Parameters:
textToEncrypt- text to encrypt- Returns:
- encrypted text
-
init
-
initForTest
public void initForTest(org.qubership.atp.crypt.api.Decryptor decryptor, org.qubership.atp.crypt.api.Encryptor encryptor) For test usage.- Parameters:
decryptor- decryptorencryptor- encryptor
-