Class SystemConsole
java.lang.Object
org.graylog.security.certutil.console.SystemConsole
- All Implemented Interfaces:
CommandLineConsole
This is a wrapper around System.console, which is not available inside IDE. Additionally, the CommandLineConsole
interface makes the testing easier, with implementation that can expect prompts and deliver preconfigured values
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.graylog.security.certutil.console.CommandLineConsole
CommandLineConsole.Prompt
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.graylog.security.certutil.console.CommandLineConsole
readBoolean, readInt
-
Constructor Details
-
SystemConsole
public SystemConsole()
-
-
Method Details
-
readLine
- Specified by:
readLine
in interfaceCommandLineConsole
-
readPassword
- Specified by:
readPassword
in interfaceCommandLineConsole
-
printLine
- Specified by:
printLine
in interfaceCommandLineConsole
-