-
- All Implemented Interfaces:
-
ai.tock.shared.security.StringObfuscator
public final class SimpleObfuscator implements StringObfuscator
Simple implementation for StringObfuscator.
-
-
Field Summary
Fields Modifier and Type Field Description private final Regexregexprivate final Stringreplacement
-
Constructor Summary
Constructors Constructor Description SimpleObfuscator(Regex regex, String replacement)
-
Method Summary
Modifier and Type Method Description final Regexcomponent1()final Stringcomponent2()final SimpleObfuscatorcopy(Regex regex, String replacement)RegexgetRegex()The search regexp. StringgetReplacement()The replacement string - should have the same size than the replaced string. -
Methods inherited from class ai.tock.shared.security.SimpleObfuscator
obfuscate -
Methods inherited from class ai.tock.shared.security.StringObfuscator
equals, hashCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
component1
final Regex component1()
-
component2
final String component2()
-
copy
final SimpleObfuscator copy(Regex regex, String replacement)
-
getReplacement
String getReplacement()
The replacement string - should have the same size than the replaced string.
-
-
-
-