com.sun.xml.registry.ebxml.jaas
Class DialogAuthenticationCallbackHandler

java.lang.Object
  extended bycom.sun.xml.registry.ebxml.jaas.DialogAuthenticationCallbackHandler
All Implemented Interfaces:
javax.security.auth.callback.CallbackHandler

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

Title:

Description:

Copyright: Copyright (c) 2002

Company:

Version:
1.0 This class is a CallbackHandler implementation that is suitable for logging into a keystore. The handle(Callback[]) method has been customized such that it can only handle the login method of LoginContext. Although the class has been designed such that it can interactively retrieve the keystore password from the user, these lines have been commented. The current implementation is such that this password is read from the property file(s).
Author:
Raghu V

Constructor Summary
DialogAuthenticationCallbackHandler(java.awt.Frame frame, org.apache.commons.logging.Log l)
          One arg constructor that accepts a java.awt.Frame object.
 
Method Summary
 void handle(javax.security.auth.callback.Callback[] callbacks)
          Implementation of the handle method specified by javax.security.auth.callback.CallbackHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialogAuthenticationCallbackHandler

public DialogAuthenticationCallbackHandler(java.awt.Frame frame,
                                           org.apache.commons.logging.Log l)
One arg constructor that accepts a java.awt.Frame object. The login dialog shown to the user will be modal to this java.awt.Frame object.

Parameters:
frame - Instance of java.awt.Frame object to which the login dialog is modal
Method Detail

handle

public void handle(javax.security.auth.callback.Callback[] callbacks)
            throws javax.security.auth.callback.UnsupportedCallbackException
Implementation of the handle method specified by javax.security.auth.callback.CallbackHandler

Specified by:
handle in interface javax.security.auth.callback.CallbackHandler
Parameters:
callbacks - Array of javax.security.auth.callback.CallbackHandler
Throws:
javax.security.auth.callback.UnsupportedCallbackException


Copyright © 2001-2004 OASIS. All Rights Reserved.