class InputStreamPasswordReader implements PasswordReader {

    @Override
    public char[] readPasswordFromConsole() {
        if (this.inputStream.hasNextLine()) {
            return this.inputStream.nextLine().toCharArray();
        } else {
            return new char[0];
        }
    }

    public  InputStreamPasswordReader(final InputStream inputStream);

}