Class CryptoUtils

java.lang.Object
org.qubership.atp.mia.utils.CryptoUtils

@Component public class CryptoUtils extends Object
  • Constructor Details

    • CryptoUtils

      public CryptoUtils()
  • Method Details

    • decryptValue

      public static String decryptValue(String textToDecrypt)
      Decrypt text if encrypted.
      Parameters:
      textToDecrypt - text to decrypt
      Returns:
      decrypted text
    • encryptValue

      public static String encryptValue(String textToEncrypt)
      Encrypt text if not encrypted.
      Parameters:
      textToEncrypt - text to encrypt
      Returns:
      encrypted text
    • init

      @PostConstruct public void init()
    • initForTest

      public void initForTest(org.qubership.atp.crypt.api.Decryptor decryptor, org.qubership.atp.crypt.api.Encryptor encryptor)
      For test usage.
      Parameters:
      decryptor - decryptor
      encryptor - encryptor