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
-
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
-