- All Superinterfaces:
InputPrompt,Prompt
- All Known Implementing Classes:
DefaultPasswordPrompt
Interface for password prompts.
A password prompt is like an input prompt but masks the input characters.
-
Method Summary
Methods inherited from interface org.jline.prompt.InputPrompt
getCompleter, getDefaultValue, getLineReader, getValidatorMethods inherited from interface org.jline.prompt.Prompt
getFilter, getMessage, getName, getTransformer
-
Method Details
-
getMask
Character getMask()Get the mask character to use for hiding input. If null, uses the default mask character '*'.- Specified by:
getMaskin interfaceInputPrompt- 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
-