eapol/eapol_framework/eapol_symbian/am/include/eaptlspeap_db_api_inc/EapTlsPeapUiTlsPeapData.h
branchRCL_3
changeset 46 c74b3d9f6b9e
parent 45 bad0cc58d154
child 55 9c2aa05919d9
equal deleted inserted replaced
45:bad0cc58d154 46:c74b3d9f6b9e
     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 #ifndef _EAPTLSPEAPUITLSPEAPDATA_H_
       
    23 #define _EAPTLSPEAPUITLSPEAPDATA_H_
       
    24 
       
    25 #include <e32std.h>
       
    26 #include <e32base.h>
       
    27 
       
    28 const TInt KMaxLengthOfUsername=255;
       
    29 const TInt KMaxLengthOfPassword=255;
       
    30 
       
    31 const TInt KMaxLengthOfPapUserName = 253; // according to UI spec
       
    32 const TInt KMaxLengthOfPapPassword = 128; // according to UI spec
       
    33 
       
    34 class CEapTlsPeapUiTlsPeapData : public CBase
       
    35 {
       
    36 public:
       
    37 
       
    38     CEapTlsPeapUiTlsPeapData();
       
    39 
       
    40     ~CEapTlsPeapUiTlsPeapData();
       
    41 
       
    42     TDes& GetManualUsername();
       
    43 
       
    44     TBool * GetUseManualUsername();
       
    45 
       
    46     TDes& GetManualRealm();
       
    47 
       
    48     TBool * GetUseManualRealm();
       
    49     
       
    50     TBool * GetAllowVersion0();
       
    51     
       
    52     TBool * GetAllowVersion1();
       
    53     
       
    54     TBool * GetAllowVersion2();
       
    55     
       
    56     // New member functions for EAP-FAST 
       
    57     
       
    58     TBool * GetTlsPrivacy();
       
    59     
       
    60     TBool * GetAuthProvModeAllowed();
       
    61 
       
    62     TBool * GetUnauthProvModeAllowed();
       
    63     
       
    64     TDes& GetPacStorePassword();
       
    65     
       
    66     TBool* GetUsePacStorePasswordPrompt();
       
    67 
       
    68 public: // new, for TTLS PAP
       
    69     
       
    70     TDes& GetPapUserName();
       
    71 
       
    72     TDes& GetPapPassword();
       
    73 
       
    74     TBool* GetPapPasswordPrompt();
       
    75 
       
    76 private:
       
    77 
       
    78     TBuf<KMaxLengthOfUsername> iManualUsername;
       
    79 
       
    80     TBool iUseManualUsername;
       
    81 
       
    82     TBuf<KMaxLengthOfUsername> iManualRealm;
       
    83 
       
    84     TBool iUseManualRealm;
       
    85     
       
    86     TBool iAllowVersion0;
       
    87     
       
    88     TBool iAllowVersion1;
       
    89     
       
    90     TBool iAllowVersion2;
       
    91     
       
    92     // New member variables for EAP-FAST
       
    93     TBool iTlsPrivacy;
       
    94     
       
    95     TBool iAuthProvModeAllowed;
       
    96 
       
    97     TBool iUnauthProvModeAllowed;
       
    98     
       
    99     TBuf<KMaxLengthOfPassword> iPacStorePassword;
       
   100     
       
   101     TBuf<KMaxLengthOfPapUserName> iPapUserName;
       
   102 
       
   103     TBuf<KMaxLengthOfPapPassword> iPapPassword;
       
   104 
       
   105     TBool iPapPasswordPrompt;
       
   106 
       
   107     TBool iPasswordPrompt;
       
   108     
       
   109 };
       
   110 
       
   111 #endif
       
   112 
       
   113 // End of file