Interface PasswordReplacer


  • public interface PasswordReplacer
    • Method Detail

      • replacePasswords

        @NotNull
        java.lang.String replacePasswords​(@NotNull
                                          java.lang.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
      • getPasswords

        @NotNull
        java.util.Set<java.lang.String> getPasswords()
        Returns:
        set of passwords used for replacement
      • addPassword

        boolean addPassword​(@NotNull
                            java.lang.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