KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > internal > authentication > AuthenticationManager


1 package org.enhydra.shark.api.internal.authentication;
2
3 import org.enhydra.shark.api.RootException;
4 import org.enhydra.shark.api.UserTransaction;
5 import org.enhydra.shark.api.internal.working.CallbackUtilities;
6
7 /**
8  * Authentication manager validates user, checks if supplied username and
9  * passwd may be trusted to access Shark.
10  *
11  * @author Sasa Bojanic
12  */

13 public interface AuthenticationManager {
14
15    /**
16     * Method configure is called at Shark start up, to configure
17     * implementation of AuthenticationManager.
18     *
19     * @param cus an instance of CallbackUtilities used to get
20     * properties for configuring AuthenticationManager in Shark.
21     *
22     * @exception RootException Thrown if configuring doesn't succeed.
23     */

24    void configure (CallbackUtilities cus) throws RootException;
25
26    /**
27     * Validates user.
28     *
29     * @param t user transaction.
30     * @param username user name.
31     * @param pwd user password.
32     *
33     * @return true if user is validated, otherwise false.
34     *
35     * @exception RootException If something unexpected happens.
36     */

37    public boolean validateUser (UserTransaction t,String JavaDoc username,String JavaDoc pwd) throws RootException;
38
39 }
40
Popular Tags