eapol/eapol_framework/eapol_common/type/simple_config/simple_config/include/simple_config_credential.h
branchRCL_3
changeset 46 c74b3d9f6b9e
parent 45 bad0cc58d154
equal deleted inserted replaced
45:bad0cc58d154 46:c74b3d9f6b9e
     1 /*
     1 /*
     2 * Copyright (c) 2001-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2001-2006 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  This class defines Credential attributes for protected setup (previously known as simple config).
    14 * Description:  EAP and WLAN authentication protocols.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 9 %
    19 * %version: 4.1.2 %
    20 */
    20 */
    21 
    21 
    22 #if !defined(_SIMPLE_CONFIG_CREDENTIAL_H_)
    22 #if !defined(_SIMPLE_CONFIG_CREDENTIAL_H_)
    23 #define _SIMPLE_CONFIG_CREDENTIAL_H_
    23 #define _SIMPLE_CONFIG_CREDENTIAL_H_
    24 
    24 
    31 
    31 
    32 
    32 
    33 //----------------------------------------------------------------------------
    33 //----------------------------------------------------------------------------
    34 
    34 
    35 
    35 
    36 /// This class defines Credential attributes for protected setup (previously known as simple config).
    36 /// This class defines Credential attributes.
    37 class EAP_EXPORT simple_config_credential_c
    37 class EAP_EXPORT simple_config_credential_c
    38 {
    38 {
    39 private:
    39 private:
    40 	//--------------------------------------------------
    40 	//--------------------------------------------------
    41 
    41 
    71 	EAP_FUNC_IMPORT simple_config_credential_c(
    71 	EAP_FUNC_IMPORT simple_config_credential_c(
    72 		abs_eap_am_tools_c * const tools);
    72 		abs_eap_am_tools_c * const tools);
    73 
    73 
    74 	EAP_FUNC_IMPORT void set_network_index(const u8_t index);
    74 	EAP_FUNC_IMPORT void set_network_index(const u8_t index);
    75 
    75 
    76 	EAP_FUNC_IMPORT u8_t get_network_index() const;
    76 	EAP_FUNC_IMPORT u8_t get_network_index();
    77 
    77 
    78 	EAP_FUNC_IMPORT eap_variable_data_c * get_SSID();
    78 	EAP_FUNC_IMPORT eap_variable_data_c * get_SSID();
    79 
       
    80 	EAP_FUNC_IMPORT const eap_variable_data_c * get_SSID_const() const;
       
    81 
    79 
    82 	EAP_FUNC_IMPORT simple_config_Authentication_Type_e get_Authentication_Type();
    80 	EAP_FUNC_IMPORT simple_config_Authentication_Type_e get_Authentication_Type();
    83 
    81 
    84 	EAP_FUNC_IMPORT void set_Authentication_Type(const simple_config_Authentication_Type_e Authentication_Type);
    82 	EAP_FUNC_IMPORT void set_Authentication_Type(const simple_config_Authentication_Type_e Authentication_Type);
    85 
    83 
    87 
    85 
    88 	EAP_FUNC_IMPORT void set_Encryption_Type(const simple_config_Encryption_Type_e Encryption_Type);
    86 	EAP_FUNC_IMPORT void set_Encryption_Type(const simple_config_Encryption_Type_e Encryption_Type);
    89 
    87 
    90 	EAP_FUNC_IMPORT eap_array_c<network_key_and_index_c> * get_network_keys();
    88 	EAP_FUNC_IMPORT eap_array_c<network_key_and_index_c> * get_network_keys();
    91 
    89 
    92 	EAP_FUNC_IMPORT const eap_array_c<network_key_and_index_c> * get_network_keys_const() const;
       
    93 
       
    94 	EAP_FUNC_IMPORT eap_variable_data_c * get_MAC_address();
    90 	EAP_FUNC_IMPORT eap_variable_data_c * get_MAC_address();
    95 
       
    96 	EAP_FUNC_IMPORT const eap_variable_data_c * get_MAC_address_const() const;
       
    97 
    91 
    98 	EAP_FUNC_IMPORT bool get_is_valid();
    92 	EAP_FUNC_IMPORT bool get_is_valid();
    99 
    93 
   100 	// 
    94 	// 
   101 	//--------------------------------------------------
    95 	//--------------------------------------------------