public class DialogCallbackHandler extends Object implements CallbackHandler
Uses a Swing dialog window to query the user for answers to authentication questions. This can be used by a JAAS application to instantiate a CallbackHandler
javax.security.auth.callback
Constructor and Description |
---|
DialogCallbackHandler()
Creates a callback dialog with the default parent window.
|
DialogCallbackHandler(Component parentComponent)
Creates a callback dialog and specify the parent window.
|
public DialogCallbackHandler()
public DialogCallbackHandler(Component parentComponent)
parentComponent
- the parent window -- specify null
for the default parentpublic void handle(Callback[] callbacks) throws UnsupportedCallbackException
handle
in interface CallbackHandler
callbacks
- the callbacks to handleUnsupportedCallbackException
- if the callback is not an
instance of NameCallback or PasswordCallback
Copyright © 1998, 2013, Oracle and/or its affiliates. All rights reserved.