Class PasswordHelper
java.lang.Object
org.dlese.dpc.schemedit.security.login.PasswordHelper
Manages password entries in the password file.
- Author:
- Jonathan Ostwald
-
Method Summary
Modifier and TypeMethodDescriptionstatic PasswordHelperGets the instance attribute of the PasswordHelper classstatic PasswordHelpergetInstance(String pwdPath) All calls to this method must supply the same "pwdPath" argument.getPassword(String username) Gets the password for supplied username.load()Creates hashtable of usersstatic voidThe main program for the PasswordHelper classvoidWrites password file with current user information.voidUpdates password file with username and password.
-
Method Details
-
getInstance
All calls to this method must supply the same "pwdPath" argument.This is necessary since FileLogin must call this each time through initialize
- Parameters:
pwdPath- NOT YET DOCUMENTED- Returns:
- The instance value
-
getInstance
Gets the instance attribute of the PasswordHelper class- Returns:
- The instance value
-
load
Creates hashtable of users- Returns:
- NOT YET DOCUMENTED
- Throws:
Exception- NOT YET DOCUMENTED
-
main
The main program for the PasswordHelper class- Parameters:
args- The command line arguments
-
getPassword
Gets the password for supplied username.- Parameters:
username- username for which to retrieve password.- Returns:
- The password value
- Throws:
Exception- if User not found for supplied username
-
update
Updates password file with username and password.- Parameters:
username- username to be updatedpassword- password of user- Throws:
Exception- NOT YET DOCUMENTED
-
remove
Writes password file with current user information.- Throws:
Exception- NOT YET DOCUMENTED
-