Interface PasswordPrompt

All Superinterfaces:
InputPrompt, Prompt
All Known Implementing Classes:
DefaultPasswordPrompt

public interface PasswordPrompt extends InputPrompt
Interface for password prompts. A password prompt is like an input prompt but masks the input characters.
  • Method Details

    • getMask

      Character getMask()
      Get the mask character to use for hiding input. If null, uses the default mask character '*'.
      Specified by:
      getMask in interface InputPrompt
      Returns:
      the mask character, or null for default
    • showMask

      default boolean showMask()
      Whether to show the mask character or completely hide input. If true, shows mask characters. If false, shows nothing.
      Returns:
      true to show mask characters, false to hide completely