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 * %version: % |
|
20 */ |
|
21 |
|
22 #if !defined(_EAP_AM_PAC_STORE_H_) |
|
23 #define _EAP_AM_PAC_STORE_H_ |
|
24 |
|
25 #include "eap_tools.h" |
|
26 #include "eap_status.h" |
|
27 #include "eap_am_export.h" |
|
28 #include "eap_expanded_type.h" |
|
29 #include "eap_array.h" |
|
30 #include "eap_database_reference_if.h" |
|
31 |
|
32 class eap_method_settings_c; |
|
33 class abs_eap_am_pac_store_c; |
|
34 |
|
35 /** @file */ |
|
36 |
|
37 /// This class is the common part of EAP message interface. |
|
38 /// This class is interface to the message creation and parsing function. |
|
39 class EAP_EXPORT eap_am_pac_store_c |
|
40 { |
|
41 |
|
42 private: |
|
43 |
|
44 // ---------------------------------------------------------------------- |
|
45 |
|
46 public: |
|
47 |
|
48 virtual ~eap_am_pac_store_c() |
|
49 { |
|
50 } |
|
51 |
|
52 virtual bool get_is_valid() = 0; |
|
53 |
|
54 // This is documented in abs_eap_stack_interface_c::configure(). |
|
55 virtual eap_status_e configure() = 0; |
|
56 |
|
57 // This is documented in abs_eap_stack_interface_c::shutdown(). |
|
58 virtual eap_status_e shutdown() = 0; |
|
59 |
|
60 virtual eap_status_e open_pac_store() = 0; |
|
61 |
|
62 virtual eap_status_e create_device_seed() = 0; |
|
63 |
|
64 virtual eap_status_e is_master_key_present() = 0; |
|
65 |
|
66 virtual eap_status_e is_master_key_and_password_matching( |
|
67 const eap_variable_data_c * const pac_store_password) = 0; |
|
68 |
|
69 virtual eap_status_e create_and_save_master_key( |
|
70 const eap_variable_data_c * const pac_store_password) = 0; |
|
71 |
|
72 virtual eap_status_e compare_pac_store_password( |
|
73 eap_variable_data_c * pac_store_password) = 0; |
|
74 |
|
75 virtual eap_status_e is_pacstore_password_present() = 0; |
|
76 |
|
77 virtual eap_status_e set_pac_store_password( |
|
78 const eap_variable_data_c * pac_store_password) = 0; |
|
79 |
|
80 virtual eap_status_e destroy_pac_store() = 0; |
|
81 |
|
82 // ---------------------------------------------------------------------- |
|
83 }; |
|
84 |
|
85 eap_am_pac_store_c * new_eap_am_pac_store_c( |
|
86 abs_eap_am_tools_c * const tools, |
|
87 abs_eap_am_pac_store_c * const partner); |
|
88 |
|
89 #endif //#if !defined(_EAP_AM_PAC_STORE_H_) |
|
90 |
|
91 |
|
92 //-------------------------------------------------- |
|
93 // End |
|