Lines Matching defs:validator
259 scoped_ptr<UserCloudPolicyValidator> validator =
261 validator->RunValidation();
262 OnRetrievedPolicyValidated(validator.get());
267 // Create and configure a validator.
268 scoped_ptr<UserCloudPolicyValidator> validator =
271 validator->ValidateUsername(username_, true);
273 validator->ValidateInitialKey(GetPolicyVerificationKey(),
277 validator->ValidateSignature(policy_key_,
283 // Start validation. The Validator will delete itself once validation is
285 validator.release()->StartValidation(
291 UserCloudPolicyValidator* validator) {
292 validation_status_ = validator->status();
299 if (!validator->success()) {
306 if (!validator->policy()->SerializeToString(&policy_blob)) {
369 // Create and configure a validator for the loaded policy.
370 scoped_ptr<UserCloudPolicyValidator> validator =
372 // Start validation. The Validator will delete itself once validation is
374 validator.release()->StartValidation(
380 UserCloudPolicyValidator* validator) {
381 validation_status_ = validator->status();
388 if (!validator->success()) {
394 InstallPolicy(validator->policy_data().Pass(), validator->payload().Pass());
416 // Create and configure a validator for the loaded legacy policy. Note that
418 scoped_ptr<UserCloudPolicyValidator> validator =
421 validator->ValidateUsername(username_, true);
422 validator.release()->StartValidation(
435 UserCloudPolicyValidator* validator) {
436 validation_status_ = validator->status();
437 if (validator->success()) {
439 InstallPolicy(validator->policy_data().Pass(), validator->payload().Pass());
558 scoped_ptr<UserCloudPolicyValidator> validator = CreateValidator(
560 validator->ValidateUsername(username_, true);
567 validator->ValidateSignature(
569 return validator.Pass();