Class CryptoTools

java.lang.Object
org.qubership.atp.crypt.CryptoTools

public final class CryptoTools extends Object
  • Method Details

    • maskEncryptedData

      public static String maskEncryptedData(String text, String mask)
      Mask text if encrypted with the mask.
      Parameters:
      text - - data to mask
      mask - - to mask encrypted data with
      Returns:
      - encrypted text
    • maskEncryptedData

      public static String maskEncryptedData(String text)
      Mask text if encrypted with Constants.ENCRYPTED_MASK mask.
      Parameters:
      text - - data to mask
      Returns:
      - encrypted text
    • getEncryptedMask

      public static String getEncryptedMask()
      Get encrypted mask.
      Returns:
      encrypted mask String.
    • getTemplateRegexp

      public static String getTemplateRegexp()
      Get encrypted data regexp.
      Returns:
      template regexp.
    • getEncryptedData

      public static String[] getEncryptedData(String data)
      Finds encrypted text from data.
      Parameters:
      data - - data to find encrypted text in.
      Returns:
      encrypted text if exists