cryptoservices/filebasedcertificateandkeystores/source/generic/common/fstokencliserv.h
changeset 0 2c201484c85f
child 8 35751d3474b7
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     1 /*
       
     2 * Copyright (c) 2004-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 * Shared client/server definitions
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 /**
       
    23  @file 
       
    24  @internalTechnology
       
    25 */
       
    26 
       
    27 #ifndef __FSTOKENCLISERV_H__
       
    28 #define __FSTOKENCLISERV_H__
       
    29 
       
    30 #include <e32base.h>
       
    31 #include "tokentypesenum.h"
       
    32 
       
    33 const TUid KUidFSTokenServer = {0x101F72A6};
       
    34 
       
    35 
       
    36 // Classes provide static lookup for tokens supported by the filetokens server
       
    37 // According to either description (string) or UID
       
    38 
       
    39 /** Stores the _LIT description of each token with its associated ETokenEnum. */
       
    40 class RSupportedTokensArray : public TFixedArray<const TDesC*, ETotalTokensSupported>
       
    41 	{
       
    42  public:
       
    43 	RSupportedTokensArray();
       
    44 	};
       
    45 
       
    46 /** Stores the UID of each token type against the associated ETokenEnum. */
       
    47 class RTokenTypeUIDLookup : public TFixedArray<TInt, ETotalTokensSupported>
       
    48 	{
       
    49  public:
       
    50 	RTokenTypeUIDLookup();
       
    51 	};
       
    52 
       
    53 // Client server protocol major version
       
    54 //   1 => 8.0 - 8.1
       
    55 // 	 2 => 9.0 onwards
       
    56 const TInt KFSProtolVersion = 2;
       
    57 
       
    58 /**	Request message enumeration between client and server. */
       
    59 enum TFSTokenMessages
       
    60 	{
       
    61 	EIdle						= 0,
       
    62 	ESupportsToken				= 1,
       
    63 
       
    64 	// For MCertStore
       
    65 	EListCerts					= 10,
       
    66 	EGetCert					= 11,
       
    67 	EApplications				= 12,
       
    68 	EIsApplicable				= 13,
       
    69 	ETrusted					= 14,
       
    70 	ERetrieve					= 15,
       
    71 	
       
    72 	// For MCTWritableCertStore
       
    73 	EAddCert					= 16,
       
    74 	ERemoveCert					= 17,
       
    75 	ESetApplicability 			= 18,
       
    76 	ESetTrust 					= 19,
       
    77 	
       
    78 	// For MKeyStore
       
    79 	EListKeys						= 50,
       
    80 	EGetKeyInfo						= 51,
       
    81 	
       
    82 	// For MCTKeyStoreManager
       
    83 	ECreateKey						= 52,
       
    84 	ECancelCreateKey				= 53,
       
    85 	EImportKey						= 54,
       
    86 	ECancelImportKey				= 55,
       
    87 	EImportEncryptedKey				= 56,
       
    88 	ECancelImportEncryptedKey		= 57,
       
    89 	EExportKey						= 58,
       
    90 	ECancelExportKey				= 59,
       
    91 	EExportEncryptedKey				= 60,
       
    92 	ECancelExportEncryptedKey		= 61,
       
    93 	EDeleteKey						= 62,
       
    94 
       
    95 	EOpenKeyRepudiableRSASign		= 64,
       
    96 	EOpenKeyRepudiableDSASign		= 65,
       
    97 	EOpenKeyDecrypt         		= 66,
       
    98 	EOpenKeyAgree           		= 67,
       
    99 	ECloseObject					= 68,
       
   100 	ERepudiableDSASign				= 69,
       
   101 	ECancelDSASign					= 70,
       
   102 	ERepudiableRSASign				= 71,
       
   103 	ECancelRSASign					= 72,
       
   104 	EExportPublic					= 73,
       
   105 	EDecryptText					= 74,
       
   106 	ECancelDecrypt					= 75,
       
   107 	EDHPublicKey					= 76,
       
   108 	EDHAgree						= 77,
       
   109 	ECancelDH						= 78,
       
   110 
       
   111 	EChangePassphrase			= 80,
       
   112 	ECancelChangePassphrase 	= 81,
       
   113 	EUnblockPassphrase			= 82,
       
   114 	ECancelUnblockPassphrase	= 83,
       
   115 	EAuthOpen					= 84,
       
   116 	ECancelAuthOpen				= 85,
       
   117 	EAuthClose					= 86,
       
   118 	EAuthTimeRemaining			= 87,
       
   119 	ESetTimeout					= 88,
       
   120 	EGetTimeout					= 89,	
       
   121 	EGetKeyLength				= 90,
       
   122 	ESetUsePolicy				= 91,
       
   123 	ESetManagementPolicy		= 92,
       
   124 	ERelock						= 93,
       
   125 
       
   126 	// For server OOM testing
       
   127 	EStartOOMTest				= 100,
       
   128 	EIncHeapFailPoint			= 101,
       
   129 	EResetHeapFail				= 102,
       
   130 	EAllocCount					= 103,
       
   131 
       
   132 	// For MCTCertApps
       
   133 	EAddApp                 = 120,
       
   134 	ERemoveApp              = 121,
       
   135 	EGetAppCount            = 122,
       
   136 	EGetApps                = 123,
       
   137 	EGetApplication         = 124
       
   138 	};
       
   139 
       
   140 
       
   141 
       
   142 #endif	//	__FILECERTSTORECLISERV_H__