Package jetbrains.buildServer.util
Interface PasswordReplacer
-
public interface PasswordReplacer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddPassword(String password)Adds a new password to the replacerSet<String>getPasswords()booleanhasPasswords()StringreplacePasswords(String text)Replaces passwords in specified text with some placeholder.
-
-
-
Method Detail
-
replacePasswords
@NotNull String replacePasswords(@NotNull String text)
Replaces passwords in specified text with some placeholder.- Parameters:
text- - text to be processed- Returns:
- see above
-
hasPasswords
boolean hasPasswords()
- Returns:
- true if there are passwords registered in the instance
-
addPassword
boolean addPassword(@NotNull String password)Adds a new password to the replacer- Parameters:
password- a password to add- Returns:
- true if there was no such password in the replacer before or false otherwise
-
-