Package org.apache.cassandra.cql3
Class PasswordObfuscator
java.lang.Object
org.apache.cassandra.cql3.PasswordObfuscator
Obfuscates passwords in a given string
-
Field Details
-
OBFUSCATION_TOKEN
- See Also:
-
PASSWORD_TOKEN
-
-
Constructor Details
-
PasswordObfuscator
public PasswordObfuscator()
-
-
Method Details
-
obfuscate
Obfuscates everything after the first appearance password token- Parameters:
sourceString- The query to obfuscate- Returns:
- The obfuscated query
-
obfuscate
Obfuscates the password in a query- Parameters:
query- The query whose password to obfuscateopts- The options containing the password to obfuscate- Returns:
- The query with obfuscated password
-