|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.schemedit.security.login.PasswordHelper
public class PasswordHelper
Manages password entries in the password file.
Method Summary | |
---|---|
static PasswordHelper |
getInstance()
Gets the instance attribute of the PasswordHelper class |
static PasswordHelper |
getInstance(String pwdPath)
All calls to this method must supply the same "pwdPath" argument. |
String |
getPassword(String username)
Gets the password for supplied username. |
Hashtable |
load()
Creates hashtable of users |
static void |
main(String[] args)
The main program for the PasswordHelper class |
void |
remove(String username)
Writes password file with current user information. |
void |
update(String username,
String password)
Updates password file with username and password. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PasswordHelper getInstance(String pwdPath)
This is necessary since FileLogin must call this each time through initialize
pwdPath
- NOT YET DOCUMENTED
public static PasswordHelper getInstance()
public Hashtable load() throws Exception
Exception
- NOT YET DOCUMENTEDpublic static void main(String[] args)
args
- The command line argumentspublic String getPassword(String username) throws Exception
username
- username for which to retrieve password.
Exception
- if User not found for supplied usernamepublic void update(String username, String password) throws Exception
username
- username to be updatedpassword
- password of user
Exception
- NOT YET DOCUMENTEDpublic void remove(String username) throws Exception
Exception
- NOT YET DOCUMENTED
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |