For the latest news and information visit
The GNU Crypto project

gnu.crypto.auth.callback
Class ConsoleCallbackHandler

java.lang.Object
  extended by gnu.crypto.auth.callback.AbstractCallbackHandler
      extended by gnu.crypto.auth.callback.ConsoleCallbackHandler
All 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)
          Handles a ChoiceCallback.
protected  void handleConfirmation(ConfirmationCallback c)
          Handles a ConfirmationCallback.
protected  void handleLanguage(LanguageCallback c)
          Handles a LanguageCallback.
protected  void handleName(NameCallback c)
          Handles a NameCallback.
protected  void handlePassword(PasswordCallback c)
          Handles a PasswordCallback.
protected  void handleTextInput(TextInputCallback c)
          Handles a TextInputCallback.
protected  void handleTextOutput(TextOutputCallback c)
          Handles a TextOutputCallback.
 
Methods inherited from class gnu.crypto.auth.callback.AbstractCallbackHandler
getInstance, getInstance, getInstance, handle, handleOther
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleCallbackHandler

public ConsoleCallbackHandler()

ConsoleCallbackHandler

public ConsoleCallbackHandler(PrintStream out)
Method Detail

handleChoice

protected void handleChoice(ChoiceCallback c)
                     throws IOException
Description copied from class: AbstractCallbackHandler
Handles a ChoiceCallback.

Specified by:
handleChoice in class AbstractCallbackHandler
Parameters:
c - The choice callback.
Throws:
IOException - If an I/O error occurs.

handleConfirmation

protected void handleConfirmation(ConfirmationCallback c)
                           throws IOException
Description copied from class: AbstractCallbackHandler
Handles a ConfirmationCallback.

Specified by:
handleConfirmation in class AbstractCallbackHandler
Parameters:
c - The confirmation callback.
Throws:
IOException - If an I/O error occurs.

handleLanguage

protected void handleLanguage(LanguageCallback c)
                       throws IOException
Description copied from class: AbstractCallbackHandler
Handles a LanguageCallback.

Specified by:
handleLanguage in class AbstractCallbackHandler
Parameters:
c - The language callback.
Throws:
IOException - If an I/O error occurs.

handleName

protected void handleName(NameCallback c)
                   throws IOException
Description copied from class: AbstractCallbackHandler
Handles a NameCallback.

Specified by:
handleName in class AbstractCallbackHandler
Parameters:
c - The name callback.
Throws:
IOException - If an I/O error occurs.

handlePassword

protected void handlePassword(PasswordCallback c)
                       throws IOException
Description copied from class: AbstractCallbackHandler
Handles a PasswordCallback.

Specified by:
handlePassword in class AbstractCallbackHandler
Parameters:
c - The password callback.
Throws:
IOException - If an I/O error occurs.

handleTextInput

protected void handleTextInput(TextInputCallback c)
                        throws IOException
Description copied from class: AbstractCallbackHandler
Handles a TextInputCallback.

Specified by:
handleTextInput in class AbstractCallbackHandler
Parameters:
c - The text input callback.
Throws:
IOException - If an I/O error occurs.

handleTextOutput

protected void handleTextOutput(TextOutputCallback c)
Description copied from class: AbstractCallbackHandler
Handles a TextOutputCallback.

Specified by:
handleTextOutput in class AbstractCallbackHandler
Parameters:
c - The text output callback.

For the latest news and information visit
The GNU Crypto project

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