Interface SecureReader

All Known Implementing Classes:
LineReaderSecureReader

public interface SecureReader
Securely reads the prompt from a shell (without echoing what is typed).
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    read(String fmt, Object... args)
    Reads a line from the console, insecurely.
    reads(String fmt, Object... args)
    Reads a single line from the terminal.
  • Method Details

    • read

      default String read(String fmt, Object... args)
      Reads a line from the console, insecurely.
      Parameters:
      fmt - the format
      args - thea arguments
      Returns:
      the value read from the console
    • reads

      String reads(String fmt, Object... args)
      Reads a single line from the terminal. Providing hte supplied prompt.
      Parameters:
      fmt - the format string
      args - the format string args
      Returns:
      the string that was read from the terminal