Paul Stewart | 35eff13 | 2013-04-12 12:08:40 -0700 | [diff] [blame] | 1 | // 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 | |
| 12 | namespace 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. |
| 19 | class 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 Stewart | be9abfd | 2013-04-22 12:18:48 -0700 | [diff] [blame] | 30 | virtual bool Is8021x() const { return true; } |
Paul Stewart | 35eff13 | 2013-04-12 12:08:40 -0700 | [diff] [blame] | 31 | virtual bool IsVisible() const { return false; } |
| 32 | virtual void OnEapCredentialsChanged(); |
Paul Stewart | be9abfd | 2013-04-22 12:18:48 -0700 | [diff] [blame] | 33 | virtual bool Unload(); |
Paul Stewart | 35eff13 | 2013-04-12 12:08:40 -0700 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | } // namespace shill |
| 37 | |
| 38 | #endif // SHILL_ETHERNET_EAP_SERVICE_H_ |