Represents HTTPS stream parameters that define how to communicate with a MobiLink server using secure HTTPS connections.
public interface StreamHTTPSParms
All members of StreamHTTPSParms interface, including all inherited members.
Name | Description |
---|---|
Returns the certificate company name for verification of secure connections. | |
Returns the certificate common name for verification of secure connections. | |
Returns the certificate unit name for verification of secure connections. | |
Get the name of the file containing the end-to-end public key. | |
Gets the extra MobiLink client network protocol options. | |
Returns the host name of the MobiLink server. | |
Returns the size, in bytes, of the output buffer used to store data before it is sent to the MobiLink server. | |
Returns the port number used to connect to the MobiLink server. | |
Returns the name of the file containing a list of trusted root certificates used for secure synchronization. | |
Returns the URL suffix of the MobiLink server. | |
Determines whether restartable HTTP is used. | |
Sets the certificate company name for verification of secure connections. | |
Sets the certificate common name for verification of secure connections. | |
Sets the certificate unit name for verification of secure connections. | |
Sets the name of the file containing the end-to-end public key. | |
Sets extra MobiLink client network protocol options. | |
Sets the host name of the MobiLink server. | |
Sets the size, in bytes, of the output buffer used to store data before it is sent to the MobiLink server. | |
Sets the port number used to connect to the MobiLink server. | |
Enables or disables restartable HTTP. | |
Sets a file containing a list of trusted root certificates used for secure synchronization. | |
Specifies the URL suffix to connect to the MobiLink server. | |
Enables or disables ZLIB compression. | |
Sets the download window size for ZLIB compression. | |
Sets the upload window size for ZLIB compression. | |
Determines if ZLIB compression is enabled. |
The following example sets the stream parameters to communicate with a MobiLink server on host name "MyMLHost". The server started with the following parameters: "-x https(port=1234;certificate=RSAServer.crt;certificate_password=x)"
SyncParms syncParms = myConnection.createSyncParms( SyncParms.HTTPS_STREAM, "MyUniqueMLUserID", "MyMLScriptVersion" ); StreamHTTPSParms httpsParms = (StreamHTTPSParms) syncParms.getStreamParms(); httpsParms.setHost("MyMLHost"); httpsParms.setPort(1234); |
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 using one of the following methods:
Install the trusted root certificate in the lib/security/cacerts key store of the JRE.
Build your own key store using the Java keytool utility and setting the javax.net.ssl.trustStore Java system property to its location (set the javax.net.ssl.trustStorePassword method to an appropriate value)
Use the setTrustedCertificates(String) parameter to point to the deployed certificate file.
To enhance security, the setCertificateName, setCertificateCompany, and setCertificateUnit methods should be used to turn on validation of the MobiLink server certificate.
Instances implementing this interface are returned by the SyncParms.getStreamParms method when the SyncParms object is created for HTTPS synchronization.
getCertificateCompany method
getCertificateName method
getCertificateUnit method
getTrustedCertificates method
setCertificateCompany method
setCertificateName method
setCertificateUnit method
setTrustedCertificates method
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |