MasterPasswordChangeRequest req = new MasterPasswordChangeRequest();
req.setCurrentPassword(currPasswd);
req.setNewPassword(newPasswd);
req.setConfirmPassword(newPasswdConfirm);
MasterPasswordChangeValidator val = new MasterPasswordChangeValidator(this);
val.validateChangeRequest(req);
//validate the new config
MasterPasswordConfigValidator validator = new MasterPasswordConfigValidator(this);
validator.validateMasterPasswordConfig(config);