@Exported public class TextCallbackHandler extends Object implements CallbackHandler
Prompts and reads from the command line for answers to authentication questions. This can be used by a JAAS application to instantiate a CallbackHandler
javax.security.auth.callback| 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(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(Callback[] callbacks) throws IOException, UnsupportedCallbackException
handle in interface CallbackHandlercallbacks - the callbacks to handleIOException - if an input or output error occurs.UnsupportedCallbackException - if the callback is not an
instance of NameCallback or PasswordCallback
Copyright © 1998, 2018, Oracle and/or its affiliates. All rights reserved.