Represents HTTPS stream parameters that define how to communicate with a MobiLink server using secure HTTPS connections.
public interface StreamHTTPSParms
All members of the StreamHTTPSParms interface, including all inherited members.
|Adds a message header to each HTTP request.|
|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.|
|Returns a Hashtable object containing the HTTP headers specified using the addCustomHTTPHeader method.|
|Returns the name of the file containing the end-to-end public key.|
|Returns the end-to-end encryption type that is in use.|
|Gets the extra MobiLink client network protocol options.|
|Returns the host name of the MobiLink server.|
|Returns the HTTP password.|
|Returns the HTTP user ID.|
|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.|
|Specifies the name of the file containing the end-to-end public key.|
|Specifies the type of end-to-end encryption to use.|
|Sets extra MobiLink client network protocol options.|
|Sets the host name of the MobiLink server.|
|Sets the user ID and password used for Basic HTTP authentication as described in RFC 2617.|
|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.|
|Specifies RSA-based end-to-end encryption when passed to the setE2eeType method.|
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.
Discuss this page in DocCommentXchange.
|Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0|