Allow 'null' for TruststorePath and TruststorePassword in ServerTrustManager

Description

Some KeyStore types (e.g. AndroidCAStore) need null as path and password in KeyStore.load(path, password). Currently Smack does not allow null as values for these two parameters and does in fact throw an NPE which results to configuration.setVerifyRootCAEnabled(false) when 'trustStore == null' [1].

[1]: http://fisheye.igniterealtime.org/browse/smack/trunk/source/org/jivesoftware/smack/ServerTrustManager.java?r=13459#to86

Environment

None

Attachments

1
  • 13 Jun 2013, 07:26 AM

Activity

Show:

Florian Schmaus June 13, 2013 at 7:26 AM

Patch by Simon Dieterle

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Created June 13, 2013 at 7:25 AM
Updated August 17, 2014 at 1:11 PM
Resolved October 9, 2013 at 12:31 PM