ch.odi.justblog.gui.swing
Class DialogAuthenticator

java.lang.Object
  extended bych.odi.justblog.gui.swing.DialogAuthenticator
All Implemented Interfaces:
javax.security.auth.callback.CallbackHandler, IAuthenticator

public class DialogAuthenticator
extends java.lang.Object
implements IAuthenticator

Creates a Swing GUI for authentication.

Author:
oglueck

Nested Class Summary
(package private)  class DialogAuthenticator.ChoiceControl
           
(package private) static interface DialogAuthenticator.Commitable
           
(package private)  class DialogAuthenticator.ConfirmationControl
           
(package private)  class DialogAuthenticator.NameControl
           
(package private)  class DialogAuthenticator.PasswordControl
           
(package private)  class DialogAuthenticator.TextInputControl
           
 
Field Summary
(package private)  java.awt.Frame owner
           
(package private)  java.lang.String title
           
 
Constructor Summary
DialogAuthenticator(java.awt.Frame owner)
           
 
Method Summary
 void handle(javax.security.auth.callback.Callback[] callbacks)
          Creates a dialog out of the callbacks and pushes the information entered by the user back into the callbacks.
 void setContext(java.lang.String context)
          Sets the text to use as the dialog title.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

owner

java.awt.Frame owner

title

java.lang.String title
Constructor Detail

DialogAuthenticator

public DialogAuthenticator(java.awt.Frame owner)
Method Detail

setContext

public void setContext(java.lang.String context)
Sets the text to use as the dialog title.

Specified by:
setContext in interface IAuthenticator
Parameters:
context - the dialog title or null.

handle

public void handle(javax.security.auth.callback.Callback[] callbacks)
            throws java.io.IOException,
                   javax.security.auth.callback.UnsupportedCallbackException
Creates a dialog out of the callbacks and pushes the information entered by the user back into the callbacks.

Specified by:
handle in interface javax.security.auth.callback.CallbackHandler
Throws:
java.io.IOException
javax.security.auth.callback.UnsupportedCallbackException


Copyright © 2005 Ortwin Glück. All Rights Reserved.