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

jvergara
21.01.2009 8d19bbe27768b4bd2928028411999a2f7f51bbb2
refs
author jvergara <jvergara@localhost>
Wednesday, January 21, 2009 23:01 +0100
committer jvergara <jvergara@localhost>
Wednesday, January 21, 2009 23:01 +0100
commit8d19bbe27768b4bd2928028411999a2f7f51bbb2
tree fa8a3a2102d8a5952dfc494aee4f05cbe77b422b tree | zip | gz
parent fc30ffccfe4909fe00450b559601006c17b9a231 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
opendj-sdk/opends/src/ads/org/opends/admin/ads/util/ApplicationKeyManager.java 113 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/ads/org/opends/admin/ads/util/ApplicationTrustManager.java 86 ●●●● diff | view | raw | blame | history