|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.lanl.Web.Login
This class authenticates a user and holds their "credentials" until they are logged out. It obtains the users from UserMgr.
| Constructor Summary | |
Login()
Public default constructor |
|
| Method Summary | |
User |
authenticate()
authenticate the user by checking the password |
java.lang.String |
getCountry()
get the country field |
java.lang.String |
getDN()
get the Distinguished Name of the user |
java.lang.String |
getEmail()
get the current email address |
static java.lang.String[] |
getMail()
return known email addresses |
static java.lang.String[] |
getNames()
obtain list of valid users |
java.lang.String |
getRole()
return the role of the current user. |
User |
getUser()
get the User from one of two ways. |
static UserMgr |
getUserMgr()
get the UserMgr that contains the Users |
java.lang.String |
getUsername()
get the current username from user if defined |
static void |
init()
Initialize and load all the users. |
void |
logOut()
logout the current user |
static void |
main(java.lang.String[] argv)
test program |
static void |
setConfigFile(java.lang.String theConfigFile)
Bean setter and getter methods |
void |
setCountry(java.lang.String c)
set the Country |
void |
setEmail(java.lang.String email)
set the email address |
void |
setOrg(java.lang.String org)
set the Organization to which the logged in user belongs |
void |
setPassword(java.lang.String password)
set the password |
void |
setUserId(java.lang.String userId)
set the active user from the userId |
static void |
setUserMgr(UserMgr theUserMgr)
set the UserMgr containing the Users. |
void |
setUsername(java.lang.String username)
set the username and get the user corresponding to the resulting dn |
java.lang.String |
toString()
get all the users in memory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Login()
| Method Detail |
public static void init()
public static void setConfigFile(java.lang.String theConfigFile)
theConfigFile - the properties filepublic void setUsername(java.lang.String username)
username - public java.lang.String getUsername()
public void setPassword(java.lang.String password)
password - public void setEmail(java.lang.String email)
email - addresspublic void setOrg(java.lang.String org)
public void setCountry(java.lang.String c)
c - containing the value of the country (e.g. US)public java.lang.String getCountry()
public void setUserId(java.lang.String userId)
userId - public java.lang.String getEmail()
public User getUser()
public java.lang.String getRole()
public java.lang.String getDN()
public void logOut()
public User authenticate()
public static java.lang.String[] getNames()
public static java.lang.String[] getMail()
public static void setUserMgr(UserMgr theUserMgr)
theUserMgr - to be usedpublic static UserMgr getUserMgr()
public java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] argv)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||