910e62b5创建于 1月15日历史提交
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef DEVICE_FIDO_MAC_AUTHENTICATOR_CONFIG_H_
#define DEVICE_FIDO_MAC_AUTHENTICATOR_CONFIG_H_

#include <string>

#include "base/component_export.h"

namespace device::fido::mac {

struct COMPONENT_EXPORT(DEVICE_FIDO) AuthenticatorConfig {
  // The keychain-access-group value used for WebAuthn credentials
  // stored in the macOS keychain by the built-in Touch ID
  // authenticator.
  std::string keychain_access_group;
  // The secret used to derive key material when encrypting WebAuthn
  // credential metadata for storage in the macOS keychain. Chrome returns
  // different secrets for each user profile in order to logically separate
  // credentials per profile.
  std::string metadata_secret;
};

}  // namespace device::fido::mac

#endif  // DEVICE_FIDO_MAC_AUTHENTICATOR_CONFIG_H_