Expresso 5-5-0

com.jcorporate.expresso.services.validation
Class ChangePasswordValidator

java.lang.Object
  extended bycom.jcorporate.expresso.services.validation.ChangePasswordValidator
All Implemented Interfaces:
ValidationHandler

public class ChangePasswordValidator
extends Object
implements ValidationHandler

This class is a helper class that allows the LoginController controller to validate the password-change request.

Author:
Shash Chatterjee
See Also:
LoginController

Constructor Summary
ChangePasswordValidator()
          Default constructor Creation date: (9/23/2001 2:23:06 PM) Author: Shash Chatterjee
 
Method Summary
 void notify(Hashtable params, String URL)
          This method is used to send the user request a password change an email with a validation link to verify that the user indeed requested this service.
 ControllerResponse validated(Hashtable params, ControllerRequest request, ControllerResponse response, Controller ctlr)
          This method is used to regenerate an users password after the validation is successful.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangePasswordValidator

public ChangePasswordValidator()
Default constructor Creation date: (9/23/2001 2:23:06 PM) Author: Shash Chatterjee

Method Detail

notify

public void notify(Hashtable params,
                   String URL)
            throws AuthValidationException
This method is used to send the user request a password change an email with a validation link to verify that the user indeed requested this service. This method is called by ValidationJob when a new validation request is submitted. Creation date: (9/23/2001 2:24:30 PM) Author: Shash Chatterjee

Specified by:
notify in interface ValidationHandler
Parameters:
params - params All the application-specific parameters from LoginController
URL - URL The link that the user will click on to validate the request
Throws:
AuthValidationException - AuthValidationException
See Also:
ValidationJob

validated

public ControllerResponse validated(Hashtable params,
                                    ControllerRequest request,
                                    ControllerResponse response,
                                    Controller ctlr)
                             throws ControllerException,
                                    NonHandleableException
This method is used to regenerate an users password after the validation is successful. This method is called by ValidationController after a validation code matches that stored in the validation entry. Creation date: (9/23/2001 2:24:30 PM) Author: Shash Chatterjee

Specified by:
validated in interface ValidationHandler
Parameters:
params - All the application-specific parameters from LoginController
request - the ControllerRequest object
response - The controller response from the runValidationState of ValidationController
ctlr - The ValidationController instance
Returns:
ControllerResponse object
Throws:
ControllerException - upon error
NonHandleableException - for fatal error
See Also:
ValidationController

Expresso 5-5-0

Please see www.jcorporate.com for information about new Expresso releases.