#include <utility>
#include "device/fido/fido_transport_protocol.h"
#include "device/fido/public_key_credential_descriptor.h"
namespace device {
namespace {
constexpr char kCredentialIdKey[] = …;
constexpr char kCredentialTypeKey[] = …;
}
std::optional<PublicKeyCredentialDescriptor>
PublicKeyCredentialDescriptor::CreateFromCBORValue(const cbor::Value& cbor) { … }
PublicKeyCredentialDescriptor::PublicKeyCredentialDescriptor() = default;
PublicKeyCredentialDescriptor::PublicKeyCredentialDescriptor(
CredentialType credential_type,
std::vector<uint8_t> id)
: … { … }
PublicKeyCredentialDescriptor::PublicKeyCredentialDescriptor(
CredentialType credential_type,
std::vector<uint8_t> id,
base::flat_set<FidoTransportProtocol> transports)
: … { … }
PublicKeyCredentialDescriptor::PublicKeyCredentialDescriptor(
const PublicKeyCredentialDescriptor& other) = default;
PublicKeyCredentialDescriptor::PublicKeyCredentialDescriptor(
PublicKeyCredentialDescriptor&& other) = default;
PublicKeyCredentialDescriptor& PublicKeyCredentialDescriptor::operator=(
const PublicKeyCredentialDescriptor& other) = default;
PublicKeyCredentialDescriptor& PublicKeyCredentialDescriptor::operator=(
PublicKeyCredentialDescriptor&& other) = default;
PublicKeyCredentialDescriptor::~PublicKeyCredentialDescriptor() = default;
bool PublicKeyCredentialDescriptor::operator==(
const PublicKeyCredentialDescriptor& other) const { … }
cbor::Value AsCBOR(const PublicKeyCredentialDescriptor& desc) { … }
}