edu.jhu.tmaj.servlet.request.impl
Class ChangePasswordRequest
java.lang.Object
edu.jhu.tmaj.servlet.request.BaseRequest
edu.jhu.tmaj.servlet.request.impl.ChangePasswordRequest
- All Implemented Interfaces:
- CommandRequest, java.io.Serializable
public final class ChangePasswordRequest
- extends BaseRequest
- implements java.io.Serializable
Used to change the password of a user. Admins can change any user's password. Passwords must
meet certain complexity requirements.
- See Also:
- Serialized Form
Constructor Summary |
ChangePasswordRequest(int userID,
java.lang.String newDigestedPassword)
Constructs a request to change a user's password. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ChangePasswordRequest
public ChangePasswordRequest(int userID,
java.lang.String newDigestedPassword)
- Constructs a request to change a user's password.
- Parameters:
username
- the username of the user making the requestpassword
- the digested password of the user making the requestuserID
- the userID of the person's password that is being changednewDigestedPassword
- the digested newPassword for UserID#userID
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
processRequest
public CommandResponse processRequest(UserBean userBean)
throws java.sql.SQLException
- Description copied from class:
BaseRequest
- This request is executed on the server assuming the username and password returns a valid
UserBean.
- Specified by:
processRequest
in class BaseRequest
- Throws:
java.sql.SQLException