-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathethernet_eap_service.h
41 lines (32 loc) · 1.33 KB
/
ethernet_eap_service.h
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 2018 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHILL_ETHERNET_ETHERNET_EAP_SERVICE_H_
#define SHILL_ETHERNET_ETHERNET_EAP_SERVICE_H_
#include <string>
#include "shill/service.h"
namespace shill {
// The EthernetEapService contains configuraton for any Ethernet interface
// while authenticating or authenticated to a wired 802.1x endpoint. This
// includes EAP credentials and Static IP configuration. This service in
// itself is not connectable, but can be used by any Ethernet device during
// authentication.
class EthernetEapService : public Service {
public:
explicit EthernetEapService(Manager* manager);
~EthernetEapService() override;
// Inherited from Service.
RpcIdentifier GetDeviceRpcId(Error* error) const override;
std::string GetStorageIdentifier() const override;
bool Is8021x() const override { return true; }
bool IsVisible() const override { return false; }
void OnEapCredentialsChanged(
Service::UpdateCredentialsReason reason) override;
bool Unload() override;
protected:
// Inherited from Service.
void OnConnect(Error* /*error*/) override {}
void OnDisconnect(Error* /*error*/, const char* /*reason*/) override {}
};
} // namespace shill
#endif // SHILL_ETHERNET_ETHERNET_EAP_SERVICE_H_