summaryrefslogtreecommitdiffstats
path: root/components/proximity_auth/remote_device.h
blob: e10db03a58d827faf5e478938e8b860c999b90f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_H
#define COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_H

#include <string>
#include <vector>

namespace proximity_auth {

struct RemoteDevice {
 public:
  enum BluetoothType { BLUETOOTH_CLASSIC, BLUETOOTH_LE };

  std::string user_id;
  std::string name;
  std::string public_key;
  BluetoothType bluetooth_type;
  std::string bluetooth_address;
  std::string persistent_symmetric_key;
  std::string sign_in_challenge;

  RemoteDevice();
  RemoteDevice(const std::string& user_id,
               const std::string& name,
               const std::string& public_key,
               BluetoothType bluetooth_type,
               const std::string& bluetooth_address,
               const std::string& persistent_symmetric_key,
               std::string sign_in_challenge);
  RemoteDevice(const RemoteDevice& other);
  ~RemoteDevice();
};

typedef std::vector<RemoteDevice> RemoteDeviceList;

}  // namespace proximity_auth

#endif  // COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_H