mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
21.01.2009 55803de4603dc853f1d00525c10b99e4557a7abc
refs
author jvergara <jvergara@localhost>
Wednesday, January 21, 2009 23:01 +0100
committer jvergara <jvergara@localhost>
Wednesday, January 21, 2009 23:01 +0100
commit55803de4603dc853f1d00525c10b99e4557a7abc
tree 46d06e7d19212115b1af8228b6d9e6788213d421 tree | zip | gz
parent e0a9730f97748fc26614bd7fd453dfa066bfbe79 view | diff
Fix for issue 3724 (ApplicationTrustManager.java use hard coded provider and algorithm)

The new proposed fix consists on allowing the user to specify the provider and algorithm to be used by the application trust manager. If nothing is specified, the code will try to use the SunJSEE provider and SunX509 algorithm (the behavior before the fix). If the provider is not available, the code will try to use only the SunX509 algorithm. If this also fails, the code will fallback and use the default algorithm of the JVM.

The previous fix generated problems for instance on Mac OS where the default algorithm is PKIX: in this case it is required to specify (using for instance java properties) the location of the trustmanager.

With the new fix, the user will be able to specify any provider or algorithm to be used, but the default behavior will be to use SunJSEE and SunX509 which works fine in most platforms.


2 files modified
199 ■■■■ changed files
opends/src/ads/org/opends/admin/ads/util/ApplicationKeyManager.java 113 ●●●● diff | view | raw | blame | history
opends/src/ads/org/opends/admin/ads/util/ApplicationTrustManager.java 86 ●●●● diff | view | raw | blame | history