Synchronization Profile

You can set Unwrired Server synchronization channel information by calling the synchronization profile's setter method. By default, this information includes the server host, port, domain name, certificate and public key that are pushed by the message channel during the registration process. Developers do not need to set these parameters manually. When the client registers and starts the application, the certificate is downloaded to the client, so that the client can be assigned the trusted certificate.

Set up a secured connection using the ConnectionProfile object.

  1. Retrieve the synchronization profile object using the Sybase Unwired Platform database's getSynchronizationionProfile method, which returns a ConnectionProfile object:
    ConnectionProfile cp = SUP101DB.getSynchronizationProfile();
  2. Set the connection fields in the ConnectionProfile object:
    cp.setServerName("SUP_Host");
    cp.setPortNumber(2481);        	
    cp.getStreamParams().setTrusted_Certificates("rsa_public_cert.crt");
    cp.setNetworkProtocol("https");
Related reference
Synchronization Profile