KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > ipanema > base > login > ILoginHandler


1 /*
2  * Created on Oct 4, 2004
3  * by Alexander Bieber
4  *
5  */

6 package com.nightlabs.ipanema.base.login;
7
8 import javax.security.auth.login.LoginException JavaDoc;
9 /**
10  * Interface to handle client logins. This interface is used instead of
11  * {@link javax.security.auth.callback.CallbackHandler} to do the user interaction.
12  * This way we can handle authentication failures and e.g. present the login screen
13  * three times.
14  * @author Alexander Bieber
15  */

16 public interface ILoginHandler {
17     
18     /**
19      * Implementors are obliged to set correct values for
20      * loginContext, loginConfigModule, and loginResult.</br>
21      * As the values are not needed before the first server interaction
22      * you may check the values by getting some bean before returning.
23      * This code is executed on the SWT-GUI-thread so any SWT graphical controls can be shown.
24      *
25      * @param loginContext
26      * @param loginConfigModule
27      * @param loginResult
28      * @throws WorkOfflineException
29      * @see IpanemaLoginContext
30      * @see LoginConfigModule
31      * @see Login.AsyncLoginResult
32      */

33     public void handleLogin(IpanemaLoginContext loginContext, LoginConfigModule loginConfigModule, Login.AsyncLoginResult loginResult) throws LoginException JavaDoc;
34 }
35
Popular Tags