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.
|
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, 2011, Oracle and/or its affiliates. All rights reserved.
DRAFT ea-b138