|
1 /* |
|
2 * Copyright (c) 2001-2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: EAP and WLAN authentication protocols. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #if !defined(_SIMPLE_CONFIG_CREDENTIAL_H_) |
|
22 #define _SIMPLE_CONFIG_CREDENTIAL_H_ |
|
23 |
|
24 #include "eap_tools.h" |
|
25 #include "simple_config_attribute_type.h" |
|
26 #include "simple_config_types.h" |
|
27 #include "eap_array_algorithms.h" |
|
28 |
|
29 /** @file */ |
|
30 |
|
31 |
|
32 //---------------------------------------------------------------------------- |
|
33 |
|
34 |
|
35 /// This class defines Credential attributes. |
|
36 class EAP_EXPORT simple_config_credential_c |
|
37 { |
|
38 private: |
|
39 //-------------------------------------------------- |
|
40 |
|
41 /// This is pointer to the tools class. |
|
42 abs_eap_am_tools_c * const m_am_tools; |
|
43 |
|
44 u8_t m_network_index; |
|
45 |
|
46 eap_variable_data_c m_SSID; |
|
47 |
|
48 simple_config_Authentication_Type_e m_Authentication_Type; |
|
49 |
|
50 simple_config_Encryption_Type_e m_Encryption_Type; |
|
51 |
|
52 eap_array_c<network_key_and_index_c> m_network_keys; |
|
53 |
|
54 eap_variable_data_c m_MAC_address; |
|
55 |
|
56 bool m_is_valid; |
|
57 |
|
58 //-------------------------------------------------- |
|
59 public: |
|
60 //-------------------------------------------------- |
|
61 |
|
62 /** |
|
63 * The destructor of the simple_config_credential_c class does nothing. |
|
64 */ |
|
65 EAP_FUNC_IMPORT virtual ~simple_config_credential_c(); |
|
66 |
|
67 /** |
|
68 * The constructor of the simple_config_credential_c class simply initializes the attributes. |
|
69 */ |
|
70 EAP_FUNC_IMPORT simple_config_credential_c( |
|
71 abs_eap_am_tools_c * const tools); |
|
72 |
|
73 EAP_FUNC_IMPORT void set_network_index(const u8_t index); |
|
74 |
|
75 EAP_FUNC_IMPORT u8_t get_network_index(); |
|
76 |
|
77 EAP_FUNC_IMPORT eap_variable_data_c * get_SSID(); |
|
78 |
|
79 EAP_FUNC_IMPORT simple_config_Authentication_Type_e get_Authentication_Type(); |
|
80 |
|
81 EAP_FUNC_IMPORT void set_Authentication_Type(const simple_config_Authentication_Type_e Authentication_Type); |
|
82 |
|
83 EAP_FUNC_IMPORT simple_config_Encryption_Type_e get_Encryption_Type(); |
|
84 |
|
85 EAP_FUNC_IMPORT void set_Encryption_Type(const simple_config_Encryption_Type_e Encryption_Type); |
|
86 |
|
87 EAP_FUNC_IMPORT eap_array_c<network_key_and_index_c> * get_network_keys(); |
|
88 |
|
89 EAP_FUNC_IMPORT eap_variable_data_c * get_MAC_address(); |
|
90 |
|
91 EAP_FUNC_IMPORT bool get_is_valid(); |
|
92 |
|
93 // |
|
94 //-------------------------------------------------- |
|
95 }; // class simple_config_credential_c |
|
96 |
|
97 |
|
98 //-------------------------------------------------- |
|
99 |
|
100 #endif //#if !defined(_SIMPLE_CONFIG_CREDENTIAL_H_) |
|
101 |
|
102 |
|
103 |
|
104 // End. |