public class

DialogCallbackHandler

extends Object
implements CallbackHandler
java.lang.Object
   ↳ com.sun.security.auth.callback.DialogCallbackHandler

Class Overview

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

Summary

Public Constructors
DialogCallbackHandler()
Creates a callback dialog with the default parent window.
DialogCallbackHandler(Component parentComponent)
Creates a callback dialog and specify the parent window.
Public Methods
void handle(Callback[] callbacks)
Handles the specified set of callbacks.
[Expand]
Inherited Methods
From class java.lang.Object
From interface javax.security.auth.callback.CallbackHandler

Public Constructors

public DialogCallbackHandler ()

Creates a callback dialog with the default parent window.

public DialogCallbackHandler (Component parentComponent)

Creates a callback dialog and specify the parent window.

Parameters
parentComponent the parent window -- specify null for the default parent

Public Methods

public void handle (Callback[] callbacks)

Handles the specified set of callbacks.

Parameters
callbacks the callbacks to handle
Throws
UnsupportedCallbackException if the callback is not an instance of NameCallback or PasswordCallback