com.jcorporate.expresso.services.validation |
This package provides for a 'validation framework'. This framework is provided
for a specific group of problems described as follows:
- User enters some information to perform some sort of action, let's say to
unsubscribe from a mail list.
- The validation framework then sends a confirmation email to the user that
includes a clickable URL. This URL contains a 128-bit random number.
- The user clicks on the random number. The framework then looks up that random
number and dispatches the request to the appropriate ValidationHandler class.
- The validation handler then performs the appropriate actions and displays
the final message to the user.
You can see this system in action in Expresso's registration system in: com.jcorporate.expresso.services.controller.RegistrationController
|
Java Source File Name | Type | Comment |
ApproveRegistrationValidator.java | Class | |
AuthValidationException.java | Class | |
ChangePasswordValidator.java | Class | This class is a helper class that allows the LoginController controller to
validate the password-change request. |
LoginEmailValidator.java | Class | This class is a helper class that allows the LoginController controller to
validate the email address provided as part of express registration. |
ValidationEntry.java | Class | This class abstracts the storing of the data that goes along with any
particular validation operation. |
ValidationHandler.java | Interface | Applications that need to use the validation framework must implement this
interface. |