eapol/eapol_framework/eapol_common/type/aka/include/eap_type_aka_authentication_vector.h
changeset 0 c8830336c852
child 2 1c7bc153c08e
equal deleted inserted replaced
-1:000000000000 0:c8830336c852
       
     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(_EAP_TYPE_AKA_AUTHENTICATION_VECTOR_H_)
       
    22 #define _EAP_TYPE_AKA_AUTHENTICATION_VECTOR_H_
       
    23 
       
    24 //#include "eap_am_memory.h"
       
    25 #include "eap_tools.h"
       
    26 #include "eap_am_export.h"
       
    27 #include "eap_variable_data.h"
       
    28 
       
    29 //-----------------------------------------------
       
    30 
       
    31 class EAP_EXPORT eap_type_aka_authentication_vector_c
       
    32 {
       
    33 private:
       
    34 
       
    35 	abs_eap_am_tools_c * m_am_tools;
       
    36 
       
    37 	eap_variable_data_c m_RAND;
       
    38 	eap_variable_data_c m_AUTN;
       
    39 	eap_variable_data_c m_RES;
       
    40 	eap_variable_data_c m_CK;
       
    41 	eap_variable_data_c m_IK;
       
    42 	eap_variable_data_c m_AUTS;
       
    43 
       
    44 	eap_status_e m_vector_status;
       
    45 
       
    46 	bool m_is_valid;
       
    47 
       
    48 public:
       
    49 
       
    50 	EAP_FUNC_IMPORT virtual ~eap_type_aka_authentication_vector_c();
       
    51 
       
    52 	EAP_FUNC_IMPORT eap_type_aka_authentication_vector_c(
       
    53 		abs_eap_am_tools_c * const tools
       
    54 		);
       
    55 
       
    56 	EAP_FUNC_IMPORT eap_variable_data_c * get_RAND() const;
       
    57 
       
    58 	EAP_FUNC_IMPORT eap_variable_data_c * get_AUTN() const;
       
    59 
       
    60 	EAP_FUNC_IMPORT eap_variable_data_c * get_RES() const;
       
    61 
       
    62 	EAP_FUNC_IMPORT eap_variable_data_c * get_CK() const;
       
    63 
       
    64 	EAP_FUNC_IMPORT eap_variable_data_c * get_IK() const;
       
    65 
       
    66 	EAP_FUNC_IMPORT eap_variable_data_c * get_AUTS() const;
       
    67 
       
    68 	EAP_FUNC_IMPORT eap_type_aka_authentication_vector_c * copy() const;
       
    69 
       
    70 	EAP_FUNC_IMPORT void reset();
       
    71 
       
    72 	EAP_FUNC_IMPORT void set_vector_status(eap_status_e vector_status);
       
    73 
       
    74 	EAP_FUNC_IMPORT eap_status_e get_vector_status() const;
       
    75 
       
    76 	EAP_FUNC_IMPORT bool get_is_valid() const;
       
    77 };
       
    78 
       
    79 
       
    80 #endif //#if !defined(_EAP_TYPE_AKA_AUTHENTICATION_VECTOR_H_)
       
    81 
       
    82 //--------------------------------------------------
       
    83 
       
    84 
       
    85 
       
    86 // End.