diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/PDK/Source/GUID-39C9DD69-504A-529C-ABD3-A73DCAD3F8E9.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/PDK/Source/GUID-39C9DD69-504A-529C-ABD3-A73DCAD3F8E9.dita Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,25 @@ + + + + + +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