public class

TextCallbackHandler

extends Object
implements CallbackHandler
java.lang.Object
   ↳ com.sun.security.auth.callback.TextCallbackHandler

Class Overview

Prompts and reads from the command line for answers to authentication questions. This can be used by a JAAS application to instantiate a CallbackHandler

Summary

Public Constructors
TextCallbackHandler()

Creates a callback handler that prompts and reads from the command line for answers to authentication questions.

Public Methods
void handle(Callback[] callbacks)
Handles the specified set of callbacks.
[Expand]
Inherited Methods
From class java.lang.Object
From interface javax.security.auth.callback.CallbackHandler

Public Constructors

public TextCallbackHandler ()

Creates a callback handler that prompts and reads from the command line for answers to authentication questions. This can be used by JAAS applications to instantiate a CallbackHandler.

Public Methods

public void handle (Callback[] callbacks)

Handles the specified set of callbacks.

Parameters
callbacks the callbacks to handle
Throws
IOException if an input or output error occurs.
UnsupportedCallbackException if the callback is not an instance of NameCallback or PasswordCallback