Class AiValueMasker

java.lang.Object
com.kingsrook.qqq.backend.core.actions.ai.exposure.AiValueMasker

public class AiValueMasker extends Object
Masks values of fields whose exposure is MASKED: - email addresses keep their first character and their domain (j***@example.com) - numbers, and strings of digits (and separators), keep their last 4 digits (***1234) - other strings keep their first and last character (a***z), or are fully masked (***) when 4 or fewer characters long.
  • Field Details

  • Constructor Details

    • AiValueMasker

      public AiValueMasker()
  • Method Details

    • mask

      public static String mask(String value, QFieldType type)
      Mask a value (of a field of the given type - which may be null).