Class PasswordReader

java.lang.Object
com.codingchili.core.security.PasswordReader

public class PasswordReader extends Object
Reads passwords.
  • Constructor Details

    • PasswordReader

      public PasswordReader()
  • Method Details

    • fromConsole

      public static String fromConsole(String prompt)
      Reads a password input from the console. Uses input masking if possible.
      Parameters:
      prompt - the text to display when requesting for input.
      Returns:
      the read line.