To use the security manager, a client must:
Create a session to
the security manager, RBTMan
, and open a connection.
Create a subsession to the security manager, RBTSecuritySettings, and open it. A client can have multiple subsessions open if required. (Sessions and subsessions are part of Symbian platform's architecture for interprocess communication: see Client/Server Overview).
Close subsessions and sessions when they are no longer needed.
Example
The following example shows how to connect to the security manager:
// 1. Create and open session to the security manager RBTMan secMan; User::LeaveIfError(secMan.Connect()); // 2. Create and open a subsession RBTSecuritySettings secmanSubSession; User::LeaveIfError(secmanSubSession.Open(secMan)); ... // 3. Cleanup secmanSubSession.Close(); secMan.Close();