jglobus / JGlobus

jGlobus is a collection of Java client libraries for Globus® Toolkit security, GRAM, and GridFTP.
http://www.globus.org/toolkit/jglobus/
Apache License 2.0
24 stars 44 forks source link

ssl-proxies: Add information about chain to CertPathValidationException #100

Closed gbehrmann closed 11 years ago

gbehrmann commented 11 years ago

CertPathValidationException has fields to capture the CertPath and certificate index that triggered the validation failure. This allows an application to provide more information about the failure to the user. Yet, JGlobus didn't fill in these fields of the exception, meaning that the user would not be offered any information beyond a simple error message saying that the certificate was rejected.

This patch adds the missing information. An application still has to detect the exception in the exception cause chain and present it to the user in some form. (cherry picked from commit df5c4f845bf2da7e15a075aa187f211014542827)