Use online authentication with the server.
Normally, the user is authenticated through the registerApplication and startConnection methods in the
Application class. Once this is done there is no need
to authenticate again. However, the user can authenticate directly with the server at any
time during the application's execution by calling the generated database instance's
onlineLogin method.
Use the SynchronizationProfile to store the username and
password.
ConnectionProfile syncProfile = SUP101DB.getSynchronizationProfile();
syncProfile.setUserName("user");
syncProfile.setPassword("password");
SUP101DB.onlineLogin();