java.lang.Object
tech.prodigio.core.libcoreservices.service.impl.TextService
All Implemented Interfaces:
ITextService

@Service public class TextService extends Object implements ITextService
  • Constructor Details

    • TextService

      public TextService()
  • Method Details

    • textObfuscation

      public String textObfuscation(String text) throws tech.prodigio.core.libcorebase.entity.UncodedError
      Description copied from interface: ITextService
      Responsible for hiding the content of a text by replacing all values with X except the last 4 characters
      Specified by:
      textObfuscation in interface ITextService
      Parameters:
      text - text to be processed
      Returns:
      the text with the hidden characters,
      Throws:
      tech.prodigio.core.libcorebase.entity.UncodedError
    • textObfuscation

      public String textObfuscation(String text, String replaceValue, int visibleLength) throws tech.prodigio.core.libcorebase.entity.UncodedError
      Specified by:
      textObfuscation in interface ITextService
      Parameters:
      text - text to be processed
      replaceValue - value that will replace the other characters
      visibleLength - how much of the original string you want to display
      Returns:
      the text with the hidden characters,
      Throws:
      tech.prodigio.core.libcorebase.entity.UncodedError