-
December 11th, 2017, 08:15 AM
#5
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(TrustManagerFactor y.getDefaultAlgorithm());
tmf.init(keyStore);
/* install the factory */
LightstreamerClient.setTrustManagerFactory(tmf);
/* create client */
LightstreamerClient client = new LightstreamerClient("https://my-host:8443", "TEST");
Similar Threads
-
By kpturner in forum General
Replies: 1
Last Post: October 1st, 2014, 05:46 PM
-
By kpturner in forum General
Replies: 8
Last Post: July 16th, 2014, 09:04 AM
-
By patrickl in forum Client SDKs
Replies: 4
Last Post: December 20th, 2013, 05:06 PM
-
By cwt237 in forum Client SDKs
Replies: 4
Last Post: September 25th, 2013, 10:19 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 01:37 AM.
Bookmarks