Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.javax.security.auth.callback
Class ConsoleCallbackHandler  view ConsoleCallbackHandler download ConsoleCallbackHandler.java

java.lang.Object
  extended bygnu.javax.security.auth.callback.AbstractCallbackHandler
      extended bygnu.javax.security.auth.callback.ConsoleCallbackHandler
All Implemented Interfaces:
javax.security.auth.callback.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
private  java.io.PrintStream out
           
 
Fields inherited from class gnu.javax.security.auth.callback.AbstractCallbackHandler
messages
 
Constructor Summary
ConsoleCallbackHandler()
           
ConsoleCallbackHandler(java.io.PrintStream out)
           
 
Method Summary
protected  void handleChoice(javax.security.auth.callback.ChoiceCallback c)
          Handles a javax.security.auth.callback.ChoiceCallback.
protected  void handleConfirmation(javax.security.auth.callback.ConfirmationCallback c)
          Handles a javax.security.auth.callback.ConfirmationCallback.
protected  void handleLanguage(javax.security.auth.callback.LanguageCallback c)
          Handles a javax.security.auth.callback.LanguageCallback.
protected  void handleName(javax.security.auth.callback.NameCallback c)
          Handles a javax.security.auth.callback.NameCallback.
protected  void handlePassword(javax.security.auth.callback.PasswordCallback c)
          Handles a javax.security.auth.callback.PasswordCallback.
protected  void handleTextInput(javax.security.auth.callback.TextInputCallback c)
          Handles a javax.security.auth.callback.TextInputCallback.
protected  void handleTextOutput(javax.security.auth.callback.TextOutputCallback c)
          Handles a javax.security.auth.callback.TextOutputCallback.
 
Methods inherited from class gnu.javax.security.auth.callback.AbstractCallbackHandler
getInstance, getInstance, getInstance, getName, handle, handleOther
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

private final java.io.PrintStream out
Constructor Detail

ConsoleCallbackHandler

public ConsoleCallbackHandler()

ConsoleCallbackHandler

public ConsoleCallbackHandler(java.io.PrintStream out)
Method Detail

handleChoice

protected void handleChoice(javax.security.auth.callback.ChoiceCallback c)
                     throws java.io.IOException
Description copied from class: AbstractCallbackHandler
Handles a javax.security.auth.callback.ChoiceCallback.

Specified by:
handleChoice in class AbstractCallbackHandler

handleConfirmation

protected void handleConfirmation(javax.security.auth.callback.ConfirmationCallback c)
                           throws java.io.IOException
Description copied from class: AbstractCallbackHandler
Handles a javax.security.auth.callback.ConfirmationCallback.

Specified by:
handleConfirmation in class AbstractCallbackHandler

handleLanguage

protected void handleLanguage(javax.security.auth.callback.LanguageCallback c)
                       throws java.io.IOException
Description copied from class: AbstractCallbackHandler
Handles a javax.security.auth.callback.LanguageCallback.

Specified by:
handleLanguage in class AbstractCallbackHandler

handleName

protected void handleName(javax.security.auth.callback.NameCallback c)
                   throws java.io.IOException
Description copied from class: AbstractCallbackHandler
Handles a javax.security.auth.callback.NameCallback.

Specified by:
handleName in class AbstractCallbackHandler

handlePassword

protected void handlePassword(javax.security.auth.callback.PasswordCallback c)
                       throws java.io.IOException
Description copied from class: AbstractCallbackHandler
Handles a javax.security.auth.callback.PasswordCallback.

Specified by:
handlePassword in class AbstractCallbackHandler

handleTextInput

protected void handleTextInput(javax.security.auth.callback.TextInputCallback c)
                        throws java.io.IOException
Description copied from class: AbstractCallbackHandler
Handles a javax.security.auth.callback.TextInputCallback.

Specified by:
handleTextInput in class AbstractCallbackHandler

handleTextOutput

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

Specified by:
handleTextOutput in class AbstractCallbackHandler