Class TextService
java.lang.Object
tech.prodigio.core.libcoreservices.service.impl.TextService
- All Implemented Interfaces:
ITextService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontextObfuscation(String text) Responsible for hiding the content of a text by replacing all values with X except the last 4 characterstextObfuscation(String text, String replaceValue, int visibleLength)
-
Constructor Details
-
TextService
public TextService()
-
-
Method Details
-
textObfuscation
public String textObfuscation(String text) throws tech.prodigio.core.libcorebase.entity.UncodedError Description copied from interface:ITextServiceResponsible for hiding the content of a text by replacing all values with X except the last 4 characters- Specified by:
textObfuscationin interfaceITextService- 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:
textObfuscationin interfaceITextService- Parameters:
text- text to be processedreplaceValue- value that will replace the other charactersvisibleLength- how much of the original string you want to display- Returns:
- the text with the hidden characters,
- Throws:
tech.prodigio.core.libcorebase.entity.UncodedError
-