Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » UltraLiteJ » UltraLiteJ Reference » UltraLiteJ API reference


StreamHTTPSParms interface

Represents HTTPS stream parameters that define how to communicate with a MobiLink server using secure HTTPS.

public StreamHTTPSParms
Base classes

The following example sets the stream parameters to communicate with a MobiLink 11 server on host name "MyMLHost". The server started with the following parameters: "-xo https(port=1234;certificate=RSAServer.crt;certificate_password=x)"

SyncParms syncParms = myConnection.createSyncParms(
StreamHTTPSParms httpsParms =
    (StreamHTTPSParms) syncParms.getStreamParms();

The above example assumes that the certificate in RSAServer.crt is chained to a trusted root certificate already installed on the client host or device.

For J2SE, you can deploy the required trusted root certificate by using one of the following methods:

1. Install the trusted root certificate in the lib/security/cacerts key store of the JRE.

2. Build your own key store using the Java keytool utility and setting the Java system property to its location. (set to an appropriate value)

3. Using the setTrustedCertificates function parameter to point to the deployed certificate file.

To enhance security, the setCertificateName, setCertificateCompany setCertificateUnit methods should be used to turn on validation of the MobiLink server certificate.

Instances implementing this interface are returned by the getStreamParms function when the SyncParms class object is created for HTTPS synchronization.


All members of StreamHTTPSParms, including all inherited members.

getCertificateCompany method
getCertificateName method
getCertificateUnit method
getTrustedCertificates method
setCertificateCompany method
setCertificateName method
setCertificateUnit method
setTrustedCertificates method