blob: 8148df73db39a0cad314492323e693d71ddc43d2 [file] [log] [blame]
Paul Stewart35eff132013-04-12 12:08:40 -07001// Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef SHILL_ETHERNET_EAP_SERVICE_H_
6#define SHILL_ETHERNET_EAP_SERVICE_H_
7
8#include <string>
9
10#include "shill/service.h"
11
12namespace shill {
13
14// The EthernetEapService contains configuraton for any Ethernet interface
15// while authenticating or authenticated to a wired 802.1x endpoint. This
16// includes EAP credentials and Static IP configuration. This service in
17// itself is not connectable, but can be used by any Ethernet device during
18// authentication.
19class EthernetEapService : public Service {
20 public:
21 EthernetEapService(ControlInterface *control_interface,
22 EventDispatcher *dispatcher,
23 Metrics *metrics,
24 Manager *manager);
25 virtual ~EthernetEapService();
26
27 // Inherited from Service.
28 virtual std::string GetDeviceRpcId(Error *error);
29 virtual std::string GetStorageIdentifier() const;
Paul Stewartbe9abfd2013-04-22 12:18:48 -070030 virtual bool Is8021x() const { return true; }
Paul Stewart35eff132013-04-12 12:08:40 -070031 virtual bool IsVisible() const { return false; }
32 virtual void OnEapCredentialsChanged();
Paul Stewartbe9abfd2013-04-22 12:18:48 -070033 virtual bool Unload();
Paul Stewart35eff132013-04-12 12:08:40 -070034};
35
36} // namespace shill
37
38#endif // SHILL_ETHERNET_EAP_SERVICE_H_