#include "components/web_package/signed_web_bundles/identity_validator.h"
#include "base/no_destructor.h"
#include "base/ranges/algorithm.h"
#include "base/strings/stringprintf.h"
#include "components/web_package/signed_web_bundles/ecdsa_p256_public_key.h"
#include "components/web_package/signed_web_bundles/ed25519_public_key.h"
#include "components/web_package/signed_web_bundles/signed_web_bundle_id.h"
namespace web_package {
namespace {
IdentityValidator* g_instance = …;
}
IdentityValidator::IdentityValidator() { … }
IdentityValidator::~IdentityValidator() { … }
void IdentityValidator::CreateInstanceForTesting() { … }
IdentityValidator* IdentityValidator::GetInstance() { … }
base::expected<void, std::string> IdentityValidator::ValidateWebBundleIdentity(
const std::string& web_bundle_id,
const std::vector<PublicKey>& public_keys) const { … }
}