class TerminalLoginCallback extends TerminalPasswordCallback implements LoginCallback {

    @Override
    public void warn(final Host bookmark, final String title, final String reason,
                     final String defaultButton, final String cancelButton, final String preference) throws ConnectionCanceledException {
        console.printf("%n%s", reason);
        if(!prompt.prompt(String.format("%s (y) or %s (n): ", defaultButton, cancelButton))) {
            // Switch protocol
            throw new LoginCanceledException();
        }
    }

    public  TerminalLoginCallback();
    public  TerminalLoginCallback(final TerminalPromptReader prompt);

}