com.sun.grid.security.login
public class TextCallbackHandler extends java.lang.Object implements javax.security.auth.callback.CallbackHandler
Constructor and Description |
---|
TextCallbackHandler()
Creates a callback handler that prompts and reads from the
command line for answers to authentication questions.
|
Modifier and Type | Method and Description |
---|---|
void |
handle(javax.security.auth.callback.Callback[] callbacks)
Handles the specified set of callbacks.
|
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 void handle(javax.security.auth.callback.Callback[] callbacks) throws java.io.IOException, javax.security.auth.callback.UnsupportedCallbackException
handle
in interface javax.security.auth.callback.CallbackHandler
callbacks
- the callbacks to handlejava.io.IOException
- if an input or output error occurs.javax.security.auth.callback.UnsupportedCallbackException
- if the callback is not an
instance of NameCallback or PasswordCallback