Print Page as PDF
gov.va.med.vistalink.security.CallbackHandlerSwing ICR (5221)

gov.va.med.vistalink.security.CallbackHandlerSwing    ICR (5221)

Name Value
NUMBER 5221
IA # 5221
DATE CREATED 2008/07/01
CUSTODIAL PACKAGE VISTALINK SECURITY
USAGE Supported
TYPE Other
DBIC APPROVAL STATUS APPROVED
NAME gov.va.med.vistalink.security.CallbackHandlerSwing
GENERAL DESCRIPTION
public class CallbackHandlerSwing extends
java.lang.Object implements javax.security.auth.callback.CallbackHandler.

Implements the JAAS CallbackHandler interface. Use with the VistaLoginModule
to invoke a Swing-based interactive logon. Input values (access code, verify
code, division selection, and other "user input") are collected via a set of
GUI dialogs when this callback handler is used. To use:

1. Create an instance of CallbackHandlerSwing. No parameters are needed. 2.
Create the JAAS LoginContext instance, passing the instance of the callback
handler as one of the parameters. 3. Invoke the JAAS login context's login
method. The callback handler will invoke Swing dialogs to collect user input
wherever required for login.
STATUS Active
KEYWORDS vistalink
DURATION Till Otherwise Agreed
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
constructor
CallbackHandlerSwing(java.awt.Frame windowParent):
Instantiates a JAAS callback handler for Swing applications.
VARIABLES TYPE VARIABLES DESCRIPTION
windowParent Input
java.awt.Frame windowParent: Allows login dialogs to
be centered over a parent frame (a top-level window with a title and border)
and linked for display purposes with the parent application. If null is
passed, login dialogs are centered based on the screen itself.
handle
public void
handle(javax.security.auth.callback.Callback[] arg0) throws
javax.security.auth.callback.UnsupportedCallbackException:

Implementation of handle() method required in JAAS CallbackHandler interface,
used by JAAS to perform callbacks to retrieve or display information.
VARIABLES TYPE VARIABLES DESCRIPTION
callbacks Input
javax.security.auth.callback.Callback[] array as
defined in the javax.security.auth.callback.CallbackHandler interface.
throws Output
Throws:
javax.security.auth.callback.UnsupportedCallbackException
DATE ACTIVATED 2008/07/11