blob: 96086140dd46cc50e7ed0abada152d276641e7b2 [file]
// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#ifndef THIRD_PARTY_CREDENTIO_VALIDATOR_MANIFEST_STORE_VALIDATOR_H_
#define THIRD_PARTY_CREDENTIO_VALIDATOR_MANIFEST_STORE_VALIDATOR_H_
#include <memory>
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "proto/ingredient_validation_result.pb.h"
#include "proto/validation_result.pb.h"
namespace credentio {
class ManifestStoreValidator {
public:
virtual ~ManifestStoreValidator() = default;
// Validates just the manifest store and returns the result and
// information about the hard binding. Returns an error if the validation
// could not be performed (eg. due to an internal error).
//
// NOTE: This method does NOT validate the hard binding. That must be done
// separately. Without that being processed, the result cannot be
// considered complete.
virtual absl::StatusOr<std::unique_ptr<PartialValidationResultProto>>
Validate(absl::string_view manifest_store) const = 0;
};
} // namespace credentio
#endif // THIRD_PARTY_CREDENTIO_VALIDATOR_MANIFEST_STORE_VALIDATOR_H_