diff -r 4816d766a08a -r f345bda72bc4 Symbian3/PDK/Source/GUID-39C9DD69-504A-529C-ABD3-A73DCAD3F8E9.dita --- a/Symbian3/PDK/Source/GUID-39C9DD69-504A-529C-ABD3-A73DCAD3F8E9.dita Tue Mar 30 11:42:04 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-39C9DD69-504A-529C-ABD3-A73DCAD3F8E9.dita Tue Mar 30 11:56:28 2010 +0100 @@ -1,25 +1,44 @@ - - - - - -How to connect to the security manager

To use the security manager, a client must:

  1. Create a session to the security manager, RBTMan, and open a connection.

  2. 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 OS's architecture for interprocess communication: see Client/Server Overview).

  3. 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(); -
\ No newline at end of file + + + + + +How +to connect to the security manager +

To use the security manager, a client must:

+
    +
  1. Create a session to +the security manager, RBTMan, and open a connection.

  2. +
  3. 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).

  4. +
  5. Close subsessions and +sessions when they are no longer needed.

  6. +
+ + +

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(); + +
\ No newline at end of file