Contents Index Initiating synchronization Monitoring and canceling synchronization pdf/preface.pdf

UltraLite User's Guide
  Developing UltraLite Java Applications
    Adding synchronization to your application

Using transport-layer security from UltraLite Java applications


For additional security during synchronization, you can use transport-layer security encrypt messages as they pass between UltraLite application and the consolidated database.

For information about encryption technology, see Transport-Layer Security.

Transport-layer security from UltraLite Java client applications uses a separate synchronization stream. You must set up your MobiLink synchronization server as well as your UltraLite client to use this synchronization stream.

Client changes 

At the client, you need to choose the UlSecureSocketStream or UlSecureRSASocketStream synchronization stream, and supply a set of stream parameters. The stream parameters include parameters that control security.

Set the parameter as follows:

UlSynchOptions opts = new UlSynchOptions;
opts.setStream(new UlSecureSocketStream() );
opts.setStreamParms( "host=myserver;"
   + "port=2439;" 
   + "certificate_company=Sybase Inc.;"
   + "certificate_unit="MEC;"
   + "certificate_name=Mobilink");
// set other options here
conn.synchronize( opts );

For details on the stream parameters, see UlSecureSocketStream synchronization parameters.

Setting up the MobiLink server 

As the secure synchronization streams for Java applications are separate streams, you must ensure that the MobiLink synchronization server is listening for it. To do this, you must supply the java_certicom_tls or java_rsa_tls synchronization streams, to match your choice on the client.

The following command line is an example:

dbmlsrv9 -x java_certicom_tls(certificate=mycertificate.crt;port=1234)

The security parameters for the java_certicom_tls and java_rsa_tls streams are as follows:


Contents Index Initiating synchronization Monitoring and canceling synchronization pdf/preface.pdf