@Exported(value=false) @Deprecated 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()
Deprecated.
Creates a callback dialog with the default parent window.
|
DialogCallbackHandler(Component parentComponent)
Deprecated.
Creates a callback dialog and specify the parent window.
|
Modifier and Type | Method and Description |
---|---|
void |
handle(Callback[] callbacks)
Deprecated.
Handles the specified set of callbacks.
|
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, 2015, Oracle and/or its affiliates. All rights reserved.