Project

General

Profile

« Previous | Next » 

Revision 509

Added by bojilova over 23 years ago

AuthMcat
- new class for authentication through MCA; implements AuthInterface
AuthSession
- assigning HttpSession obj only after successful athentication;
- cleared isAuthenticated field - not needed
- cleared invalidate() method - not needed
AuthInterface
- added input parameters: user and password for getGroups() and getUsers() interfaces
needed for making connection to the auth server
MetaCatServlet
- changed the values of action paramet to "login" and "logout"
- added handleLogoutAction() method

View differences:

AuthInterface.java
34 34
   * @returns boolean true if authentication successful, false otherwise
35 35
   */
36 36
  public boolean authenticate(String user, String password)
37
                    throws ConnectException;
37
         throws ConnectException;
38 38

  
39 39
  /**
40 40
   * Get all users from the authentication service
41 41
   */
42
  public String[] getUsers() throws ConnectException;
42
  public String[] getUsers(String user, String password) 
43
         throws ConnectException;
43 44

  
44 45
  /**
45 46
   * Get the users for a particular group from the authentication service
46 47
   */
47
  public String[] getUsers(String group) throws ConnectException;
48
  public String[] getUsers(String user, String password, String group)
49
         throws ConnectException;
48 50

  
49 51
  /**
50 52
   * Get all groups from the authentication service
51 53
   */
52
  public String[] getGroups() throws ConnectException;
54
  public String[] getGroups(String user, String password)
55
         throws ConnectException;
53 56

  
54 57
  /**
55 58
   * Get the groups for a particular user from the authentication service
56 59
   */
57
  public String[] getGroups(String user) throws ConnectException;
60
  public String[] getGroups(String user, String password, String foruser)
61
         throws ConnectException;
58 62

  
59 63
  /**
60 64
   * Get attributes describing a user or group

Also available in: Unified diff