All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class mit.login.LoginUtil

java.lang.Object
   |
   +----mit.login.LoginUtil

public class LoginUtil
extends Object

Utility class with various functions for the Login server.

There can only be one instance of the LoginUtil, you get to it via a call to LoginUtil.getInstance().


Method Index

 o getInstance()
Obtain a reference to the one LoginUtil object in the system.
 o LoginOK(String, String)
Verify username and password.
 o setContext(ServletContext)

Methods

 o getInstance
 public static LoginUtil getInstance()
Obtain a reference to the one LoginUtil object in the system.

Returns:
the LoginUtil object
 o setContext
 public void setContext(ServletContext context)
 o LoginOK
 public boolean LoginOK(String login,
                        String password) throws KVerifyException
Verify username and password. Returns if true if username and password match.

Parameters:
login - The username.
password - Username's Kerberos password
Returns:
true if username/password are correct.
Throws: KVerifyException
on a problem.

All Packages  Class Hierarchy  This Package  Previous  Next  Index