|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.tool.project.Users
public class Users
This is the user management part of the Project Management tool.
Field Summary | |
---|---|
static boolean |
LOWSECURITY
There are two levels of security: low and medium. |
Constructor Summary | |
---|---|
Users()
|
Method Summary | |
---|---|
static void |
addUser(java.lang.String user,
java.lang.String encryptedPassword)
Method to add a user to the user database. |
static void |
changeEncryptedPassword(java.lang.String user,
java.lang.String newEncryptedPassword)
Method to change a user's encrypted password. |
static void |
deleteUser(java.lang.String user)
Method to remove a user name from the user database. |
static java.lang.String |
encryptPassword(java.lang.String text)
Method to encrypt a string in the most simple of ways. |
static java.lang.String |
getEncryptedPassword(java.lang.String user)
Method to return the encrypted password associated with a given user. |
static int |
getNumUsers()
Method to return the number of users in the user database. |
static java.util.Iterator<java.lang.String> |
getUsers()
Method to return an Iterator over the users in the user database. |
static boolean |
isExistingUser(java.lang.String user)
Method to tell whether a user name is in the user database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean LOWSECURITY
Constructor Detail |
---|
public Users()
Method Detail |
---|
public static int getNumUsers()
public static java.util.Iterator<java.lang.String> getUsers()
public static boolean isExistingUser(java.lang.String user)
user
- the user name.
public static void deleteUser(java.lang.String user)
user
- the user name to remove from the user database.public static void addUser(java.lang.String user, java.lang.String encryptedPassword)
user
- the user name to add.encryptedPassword
- the encrypted password for the user.public static java.lang.String getEncryptedPassword(java.lang.String user)
user
- the user name.
public static void changeEncryptedPassword(java.lang.String user, java.lang.String newEncryptedPassword)
user
- the user name.newEncryptedPassword
- the new encrypted password for the user.public static java.lang.String encryptPassword(java.lang.String text)
text
- the text to encrypt.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |