authenticationservices/authenticationserver/inc_private/authrepository.h
changeset 29 ece3df019add
equal deleted inserted replaced
19:cd501b96611d 29:ece3df019add
       
     1 /*
       
     2 * Copyright (c) 2009 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: 
       
    15 * Contains system wide default plugin and authentication strength aliases configuration parameters.
       
    16 * The strength aliases and it's corresponding authentication expression is specified in the 
       
    17 * authserver configuration(central repository) file.Also , defined are the enums corresponding 
       
    18 * to authentication expression creation.
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 /**
       
    24  @file 
       
    25  @released
       
    26  @internalComponent 
       
    27 */
       
    28 #ifndef AUTHREPOSITORY_H
       
    29 #define AUTHREPOSITORY_H
       
    30 
       
    31 #include <centralrepository.h>
       
    32 #include "authserver/authtypes.h"
       
    33 
       
    34 namespace AuthServer
       
    35 	{
       
    36 	
       
    37 	/**	 The default system wide plugin key*/
       
    38 	const TUint KAuthDefaultPlugin = {0x00000000}; 
       
    39 		
       
    40 	/**
       
    41 		AuthServer repository configuration parameter Enums.
       
    42 		These enums are the key Id's for authentication strength aliases and their respective authentication expression defining them.
       
    43 	 */
       
    44 	
       
    45 	enum TAuthStrengthAliasesKeys
       
    46 		{
       
    47 		EAuthAliasesCount			= 0x00000100,	// Number of authentication aliases.
       
    48 		EAuthAliases				= 0x00000200,   // The various authentication aliases like strong, weak, medium, fast etc.
       
    49 		EAuthAliasesExpr			= 0x00000300,	// The authentication expressions defining each authentication alias.
       
    50 		};
       
    51 	
       
    52 	/** The UID of the AuthServer repository. */
       
    53 	const TUid KUidAuthServerRepository = {0x2001ea7f};  //536996479
       
    54 
       
    55 	
       
    56 /**
       
    57  * Provides methods to access information from
       
    58  * AuthServer's Central Repository
       
    59  */
       
    60 
       
    61 class CAuthRepository : public CBase
       
    62 	{
       
    63 	
       
    64 public:
       
    65 	
       
    66 	static CAuthRepository* NewL();
       
    67 	
       
    68 	static CAuthRepository* NewLC();
       
    69 	
       
    70 	TPluginId DefaultPluginL() const;
       
    71 	
       
    72 	void ListAliasL(RPointerArray<HBufC>& aAuthStrengthAliasList);
       
    73 	
       
    74 	void GetAliasDefinitionL(TInt aKey, TDes16& aValue);
       
    75 	
       
    76 	~CAuthRepository();
       
    77 	
       
    78 private:
       
    79 	
       
    80 	void ConstructL();
       
    81 	
       
    82 private:
       
    83 	CRepository* iRepository;
       
    84 	};
       
    85 
       
    86 
       
    87 }
       
    88 #endif //AUTHREPOSITORY_H