ConnectionProfile

The ConnectionProfile class manages local database information. Set its properties, including the encryption key, during application initialization, and before creating or accessing the local client database.

By default, the database class name is generated as "packageName"+"DB".

ConnectionProfile profile = <PkgName>DB.getConnectionProfile();
profile.setPageSize( 4*1024 );
profile.setEncryptionKey("Your key of more than 16 characters");

You can also generate an encryption key by calling the generated database's generateEncryptionKey method, and then store the key inside a DataVault object. The generateEncryptionKey method automatically sets the encryption key in the connection profile.

Related tasks
Setting Up the Connection Profile