java.lang.Object
gnu.javax.security.auth.callback.AbstractCallbackHandler
gnu.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
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
out
private final java.io.PrintStream out
ConsoleCallbackHandler
public ConsoleCallbackHandler()
ConsoleCallbackHandler
public ConsoleCallbackHandler(java.io.PrintStream out)
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