gnu.crypto.auth.callback

Class ConsoleCallbackHandler

Implemented Interfaces:
CallbackHandler

public class ConsoleCallbackHandler
extends AbstractCallbackHandler

An implementation of CallbackHandler that reads and writes information to and from System.in and System.out.

Field Summary

Fields inherited from class gnu.crypto.auth.callback.AbstractCallbackHandler

messages

Constructor Summary

ConsoleCallbackHandler()
ConsoleCallbackHandler(PrintStream out)

Method Summary

protected void
handleChoice(ChoiceCallback c)
protected void
handleConfirmation(ConfirmationCallback c)
protected void
handleLanguage(LanguageCallback c)
protected void
handleName(NameCallback c)
protected void
handlePassword(PasswordCallback c)
protected void
handleTextInput(TextInputCallback c)
protected void
handleTextOutput(TextOutputCallback c)

Methods inherited from class gnu.crypto.auth.callback.AbstractCallbackHandler

getInstance, getInstance, getInstance, handle, handleChoice, handleConfirmation, handleLanguage, handleName, handleOther, handlePassword, handleTextInput, handleTextOutput

Constructor Details

ConsoleCallbackHandler

public ConsoleCallbackHandler()

ConsoleCallbackHandler

public ConsoleCallbackHandler(PrintStream out)

Method Details

handleChoice

protected void handleChoice(ChoiceCallback c)
            throws IOException
Overrides:
handleChoice in interface AbstractCallbackHandler

handleConfirmation

protected void handleConfirmation(ConfirmationCallback c)
            throws IOException
Overrides:
handleConfirmation in interface AbstractCallbackHandler

handleLanguage

protected void handleLanguage(LanguageCallback c)
            throws IOException
Overrides:
handleLanguage in interface AbstractCallbackHandler

handleName

protected void handleName(NameCallback c)
            throws IOException
Overrides:
handleName in interface AbstractCallbackHandler

handlePassword

protected void handlePassword(PasswordCallback c)
            throws IOException
Overrides:
handlePassword in interface AbstractCallbackHandler

handleTextInput

protected void handleTextInput(TextInputCallback c)
            throws IOException
Overrides:
handleTextInput in interface AbstractCallbackHandler

handleTextOutput

protected void handleTextOutput(TextOutputCallback c)
Overrides:
handleTextOutput in interface AbstractCallbackHandler

Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.