chromium/chrome/browser/web_applications/isolated_web_apps/iwa_identity_validator.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/web_applications/isolated_web_apps/iwa_identity_validator.h"

#include "base/base64.h"
#include "base/containers/map_util.h"
#include "base/no_destructor.h"
#include "base/strings/stringprintf.h"
#include "chrome/browser/web_applications/isolated_web_apps/key_distribution/iwa_key_distribution_info_provider.h"
#include "components/web_package/signed_web_bundles/ecdsa_p256_public_key.h"
#include "components/web_package/signed_web_bundles/ed25519_public_key.h"

namespace web_app {

namespace {

base::expected<void, std::string>
ValidateWebBundleIdentityAgainstKeyRotationInfo(
    const std::string& web_bundle_id,
    const std::vector<web_package::PublicKey>& public_keys,
    const IwaKeyDistributionInfoProvider::KeyRotationInfo& kr_info) {}

}  // namespace

void IwaIdentityValidator::CreateSingleton() {}

base::expected<void, std::string>
IwaIdentityValidator::ValidateWebBundleIdentity(
    const std::string& web_bundle_id,
    const std::vector<web_package::PublicKey>& public_keys) const {}

}  // namespace web_app