eapol/eapol_framework/eapol_symbian/am/include/eaptlspeap_db_api_inc/EapFastPacStore.h
changeset 49 43351a4f2da3
parent 47 712b4ffd76bb
equal deleted inserted replaced
47:712b4ffd76bb 49:43351a4f2da3
     1 /*
       
     2 * Copyright (c) 2008 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-FAST PAC-store IF.
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 9 %
       
    20 */
       
    21 
       
    22 #ifndef _EAPFASTPACSTORE_H_
       
    23 #define _EAPFASTPACSTORE_H_
       
    24 
       
    25 // INCLUDES
       
    26 #include <e32base.h>
       
    27 #include <ecom/ecom.h> 
       
    28 
       
    29 
       
    30 class CEapFastPacStore
       
    31 : public CBase
       
    32 {
       
    33 
       
    34 public:
       
    35 
       
    36     /**
       
    37     * Factory function that loads the CEapFastPacStore implementation DLL (plug-in).
       
    38     */
       
    39     static CEapFastPacStore * NewL();
       
    40 
       
    41 	virtual void OpenPacStoreL() = 0;
       
    42     
       
    43     // this may not be needed at all
       
    44     virtual void CreateDeviceSeedL() = 0;
       
    45 
       
    46     virtual TBool IsMasterKeyPresentL() = 0;
       
    47 
       
    48     virtual TBool IsMasterKeyAndPasswordMatchingL(
       
    49 		const TDesC8 & aPassword8) = 0;
       
    50 
       
    51     virtual TInt CreateAndSaveMasterKeyL(
       
    52 		const TDesC8 & aPassword8) = 0;
       
    53 
       
    54     virtual TInt ComparePacStorePasswordL(
       
    55 		TDes8 & aPassword8) = 0;
       
    56 
       
    57     virtual TBool IsPacStorePasswordPresentL() = 0;
       
    58 
       
    59     virtual TInt SetPacStorePasswordL(
       
    60 		const TDesC8 & aPassword8) = 0;
       
    61 
       
    62     virtual TInt DestroyPacStore() = 0;
       
    63 
       
    64 private:
       
    65 
       
    66 	/// ECom uses this key to keep track of DLL usage.
       
    67 	TUid iDtor_ID_Key;
       
    68 
       
    69 };
       
    70 
       
    71 #include "EapFastPacStore.inl"
       
    72 
       
    73 
       
    74 #endif //_EAPFASTPACSTORE_H_