|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.adaptors.html.HtmlAuth
public class HtmlAuth
| Field Summary | |
|---|---|
protected boolean |
authenticateFlag
|
java.util.Vector |
userInfoVec
|
| Constructor Summary | |
|---|---|
HtmlAuth()
This class provide authentication features for the User. |
|
| Method Summary | |
|---|---|
void |
addUser(java.lang.String user,
java.lang.String passwd,
int type)
Adds a new user to the userInfoVec |
void |
deleteUser(java.lang.String user)
Deletes the user from UserInfoVec |
boolean |
getAuthorisation()
Returns the whether authorisation is enabled or not |
java.lang.String[] |
getUserNames()
Gets all the users from UserInfoVec |
boolean |
isAdminUser(java.lang.String user)
Finds out whether the user is an Admin user |
boolean |
isValidUser(java.lang.String user,
java.lang.String password)
Authenticates the user |
void |
modifyUser(java.lang.String user,
java.lang.String passwd,
int type)
Modifies the user from UserInfoVec |
void |
readAuthFile(java.lang.String str)
|
void |
setAuthorisation(boolean flag)
sets the authorisation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.util.Vector userInfoVec
protected boolean authenticateFlag
| Constructor Detail |
|---|
public HtmlAuth()
| Method Detail |
|---|
public boolean isValidUser(java.lang.String user,
java.lang.String password)
isValidUser in interface HtmlAuthMBeanlogin - name of the userpassword - of the user
public boolean isAdminUser(java.lang.String user)
isAdminUser in interface HtmlAuthMBeanlogin - name of the user
public void addUser(java.lang.String user,
java.lang.String passwd,
int type)
addUser in interface HtmlAuthMBeanlogin - name of the user
public void modifyUser(java.lang.String user,
java.lang.String passwd,
int type)
modifyUser in interface HtmlAuthMBeanlogin - name of the userpassword - of the usertype - of the userpublic void deleteUser(java.lang.String user)
deleteUser in interface HtmlAuthMBeanname - of the userpublic void readAuthFile(java.lang.String str)
public java.lang.String[] getUserNames()
getUserNames in interface HtmlAuthMBeanpublic void setAuthorisation(boolean flag)
HtmlAuthMBean
setAuthorisation in interface HtmlAuthMBeanpublic boolean getAuthorisation()
HtmlAuthMBean
getAuthorisation in interface HtmlAuthMBean
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||