Lines Matching defs:validator
276 UserCloudPolicyValidator* validator) {
277 validation_status_ = validator->status();
278 if (!validator->success()) {
286 validator->policy_data()->request_token();
287 DVLOG(1) << "Device ID: " << validator->policy_data()->device_id();
292 validator->policy_data()->clear_public_key_version();
299 InstallPolicy(validator->policy_data().Pass(), validator->payload().Pass());
327 // Configure the validator.
328 scoped_ptr<UserCloudPolicyValidator> validator = CreateValidator(
345 validator->ValidateUsername(signin_username_, true);
377 validator->ValidateCachedKey(cached_key->signing_key(),
382 validator->ValidateSignature(cached_key->signing_key(),
394 validator->ValidateInitialKey(verification_key, owning_domain);
401 validator->ValidateSignature(
407 // Start validation in the background. The Validator will free itself once
409 validator.release()->StartValidation(callback);
412 validator->RunValidation();
413 callback.Run(validator.get());
418 UserCloudPolicyValidator* validator) {
419 validation_status_ = validator->status();
421 if (!validator->success()) {
433 validator->policy()));
434 InstallPolicy(validator->policy_data().Pass(), validator->payload().Pass());
437 if (validator->policy()->has_new_public_key())
438 policy_key_ = validator->policy()->new_public_key();