smf/smfcredentialmgr/smfcredmgrcommon/inc/smfcredmgrcommon.h
changeset 18 013a02bf2bb0
parent 14 a469c0e6e7fb
child 24 1cee9f1b95e0
equal deleted inserted replaced
17:106a4bfcb866 18:013a02bf2bb0
    41  *
    41  *
    42  *  The flag associated to each Plugin ID is now taken as a generic flag to entire 
    42  *  The flag associated to each Plugin ID is now taken as a generic flag to entire 
    43  * PluginList during storing in  storeAuthData() API ,i.e if Flag = 1 the 
    43  * PluginList during storing in  storeAuthData() API ,i.e if Flag = 1 the 
    44  * entire List of Plugins are enabled. 
    44  * entire List of Plugins are enabled. 
    45  * 
    45  * 
    46  *  The NONCE and Registration Token are to be generated using SecureRandomL() library function.
    46  *  The NONCE is generated using rand() library function.
    47  *   
    47  *   
    48  *  @Todo-  1)The validity check of the authentication data at the server side is an open item yet and is to be implemented. 
    48  *  @Todo-  1)The validity check of the authentication data at the server side is an open item yet and is to be implemented. 
    49  *  This will require the signal-slot implementation at the client side to notify authentication expiry. The error handling 
    49  *  This will require the signal-slot implementation at the client side to notify authentication expiry, if decided that 
    50  *  and also state-machine (if required) are to be implemented. 2) The process id of SmfServer needs to be checked inside 
    50  *  credentialmgr will launch authapp. 
    51  *  credmgr to ensure nobody else reads the keys. 
    51  *  2)The error handling and  state-machine (if required) are to be implemented. 
       
    52  *  3) The process id of smfserver needs to be checked inside credmgr to ensure only smfserver reads the keys. 
    52  *   
    53  *   
    53  */
    54  */
       
    55 
    54 #ifndef COMMON_H_
    56 #ifndef COMMON_H_
    55 #define COMMON_H_
    57 #define COMMON_H_
       
    58 
    56 #include <e32base.h>
    59 #include <e32base.h>
    57 #include <e32debug.h>
    60 #include <e32debug.h>
       
    61 
    58 /**
    62 /**
    59  *Name of the server.
    63  *Name of the server.
    60  */
    64  */
    61 _LIT(KCredMgrServerName,"smfcredmgrserver");
    65 _LIT(KCredMgrServerName,"smfcredmgrserver");
    62 _LIT(KCredMgrServerSemaphoreName, "smfcredmgrserversemaphore" );
    66 _LIT(KCredMgrServerSemaphoreName, "smfcredmgrserversemaphore" );
    77 	{
    81 	{
    78 	/**
    82 	/**
    79 	 * Enum for no algorithm
    83 	 * Enum for no algorithm
    80 	 */
    84 	 */
    81 	ESmfNoSigningMethod = 0,
    85 	ESmfNoSigningMethod = 0,
       
    86 			
    82 	/**
    87 	/**
    83 	 *Enum for algorithm RSA-SHA1
    88 	 *Enum for algorithm RSA-SHA1
    84 	 */
    89 	 */
    85 	ESMFRSAProtocol,
    90 	ESMFRSAProtocol,
    86 
    91 
    87 	/**
    92 	/**
    88 	 *Enum for algorithm HMAC-SHA1
    93 	 *Enum for algorithm HMAC-SHA1
    89 	 */
    94 	 */
    90 	ESMFHMACProtocol,
    95 	ESMFHMACProtocol,
       
    96 	
    91 	/**
    97 	/**
    92 	 *Enum for Plain Tezt
    98 	 *Enum for Plain Tezt
    93 	 */
    99 	 */
    94 	ESMFPlainText,
   100 	ESMFPlainText,
       
   101 	
    95 	/**
   102 	/**
    96 	 *Enum for SHA256
   103 	 *Enum for SHA256
    97 	 */
   104 	 */
    98 	ESMFSHA256Protocol
   105 	ESMFSHA256Protocol
    99 	};
   106 	};
   103  */
   110  */
   104 enum TCredentialServerRequestID
   111 enum TCredentialServerRequestID
   105 	{
   112 	{
   106 	/**
   113 	/**
   107 	 * Op code to check plugin is authorised
   114 	 * Op code to check plugin is authorised
   108 	 * */
   115 	 */
   109 	ECheckPluginAuthentication = 1,
   116 	ECheckPluginAuthentication = 1,
   110 
   117 
   111 	/**
   118 	/**
   112 	 * Op code to store entire set of data while authentication
   119 	 * Op code to store entire set of data while authentication
   113 	 * */
   120 	 */
   114 	EStoreAuthData,
   121 	EStoreAuthData,
   115 
   122 
   116 	/**
   123 	/**
   117 	 * Op code to send OAuth key set i.e SmfAuthParams
   124 	 * Op code to send OAuth key set i.e SmfAuthParams
   118 	 * */
   125 	 */
   119 	ESendAuthDataSet,
   126 	ESendAuthDataSet,
   120 
   127 
   121 	/**
   128 	/**
   122 	 * Op code to send authenticated plugin list
   129 	 * Op code to send authenticated plugin list
   123 	 * */
   130 	 */
   124 	ESendPluginIDList,
   131 	ESendPluginIDList,
   125 
   132 
   126 	/**
   133 	/**
   127 	 * Op code to send URL list.
   134 	 * Op code to send URL list.
   128 	 */
   135 	 */
   135 
   142 
   136 	/**
   143 	/**
   137 	 * Op code to store RSA keys.
   144 	 * Op code to store RSA keys.
   138 	 */
   145 	 */
   139 	ESmfStoreRSAKey,
   146 	ESmfStoreRSAKey,
       
   147 	
   140 	/**
   148 	/**
   141 	 * Op code to sign message using RSA algo.
   149 	 * Op code to sign message using RSA algo.
   142 	 */
   150 	 */
   143 	ESmfRSASignMessage,
   151 	ESmfRSASignMessage,
       
   152 	
   144 	/**
   153 	/**
   145 	 * Op code to sign using HAMC-SHA1 algo.
   154 	 * Op code to sign using HAMC-SHA1 algo.
   146 	 */
   155 	 */
   147 	ESmfHMACSHA1SignMessage,
   156 	ESmfHMACSHA1SignMessage,
       
   157 	
   148 	/**
   158 	/**
   149 	 * Op code to delete RSA keys.
   159 	 * Op code to delete RSA keys.
   150 	 */
   160 	 */
   151 	ESmfDeleteKeys
   161 	ESmfDeleteKeys
   152 	};
   162 	};