We have released the version 3.1.7 of Android client.
The new library contains the static method LightstreamerClient.setTrustManagerFactory, which can be used to set a global trust manager factory for the library. The method can be called only once before creating any instance of LightstreamerClient.
You can use the extension in this way, for example:
/* load the certificate in the trust manager */
KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
InputStream ksIn = getClass().getResourceAsStream("/my-host.keystore");
try {
keyStore.load(ksIn, "my-password".toCharArray());
} finally {
ksIn.close();
}
TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
tmf.init(keyStore);
/* install the factory */
LightstreamerClient.setTrustManagerFactory(tmf);
/* create client */
LightstreamerClient client = new LightstreamerClient("
https://my-host:8443", "TEST");