issrg.SAWS.callback
Class SAWSGUICallbackHandler

java.lang.Object
  extended by issrg.SAWS.callback.SAWSGUICallbackHandler
All Implemented Interfaces:
javax.security.auth.callback.CallbackHandler

public class SAWSGUICallbackHandler
extends java.lang.Object
implements javax.security.auth.callback.CallbackHandler

This class represents the callback handler that uses graphical components to interact with the user.

Version:
1.0, Feb. 2007
Author:
E. Silva

Constructor Summary
SAWSGUICallbackHandler()
          Constructor of the class.
 
Method Summary
 void handle(javax.security.auth.callback.Callback[] callbacks)
          Method that handles the callbacks sent as parameter.
 void setParentComponent(java.awt.Component parent)
          Method that sets the parent component for the pop-up windows opened by this handler during the execution of 'handle' method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAWSGUICallbackHandler

public SAWSGUICallbackHandler()
Constructor of the class.

Method Detail

setParentComponent

public void setParentComponent(java.awt.Component parent)
Method that sets the parent component for the pop-up windows opened by this handler during the execution of 'handle' method.

Parameters:
parent - The parent component.

handle

public void handle(javax.security.auth.callback.Callback[] callbacks)
            throws javax.security.auth.callback.UnsupportedCallbackException
Method that handles the callbacks sent as parameter.

Specified by:
handle in interface javax.security.auth.callback.CallbackHandler
Parameters:
callbacks - The list of callbacks to be handled.
Throws:
javax.security.auth.callback.UnsupportedCallbackException - If one of the callbacks are not known (supported).