cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ashaki...@apache.org
Subject svn commit: r1549596 - /cxf/branches/2.7.x-fixes/services/xkms/xkms-x509-handlers/src/main/java/org/apache/cxf/xkms/x509/validator/TrustedAuthorityValidator.java
Date Mon, 09 Dec 2013 15:24:38 GMT
Author: ashakirin
Date: Mon Dec  9 15:24:38 2013
New Revision: 1549596

URL: http://svn.apache.org/r1549596
Log:
Improved logging message in XKMS validator

Modified:
    cxf/branches/2.7.x-fixes/services/xkms/xkms-x509-handlers/src/main/java/org/apache/cxf/xkms/x509/validator/TrustedAuthorityValidator.java

Modified: cxf/branches/2.7.x-fixes/services/xkms/xkms-x509-handlers/src/main/java/org/apache/cxf/xkms/x509/validator/TrustedAuthorityValidator.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/services/xkms/xkms-x509-handlers/src/main/java/org/apache/cxf/xkms/x509/validator/TrustedAuthorityValidator.java?rev=1549596&r1=1549595&r2=1549596&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/services/xkms/xkms-x509-handlers/src/main/java/org/apache/cxf/xkms/x509/validator/TrustedAuthorityValidator.java
(original)
+++ cxf/branches/2.7.x-fixes/services/xkms/xkms-x509-handlers/src/main/java/org/apache/cxf/xkms/x509/validator/TrustedAuthorityValidator.java
Mon Dec  9 15:24:38 2013
@@ -96,8 +96,13 @@ public class TrustedAuthorityValidator i
             CertPathValidator validator = CertPathValidator.getInstance("PKIX");
             validator.validate(certPath, pkixParams);
         } catch (InvalidAlgorithmParameterException e) {
+            LOG.log(Level.SEVERE,
+                    "Invalid algorithm parameter by certificate chain validation. "
+                        + "It is likely that issuer certificates are not found in XKMS trusted
storage. "
+                        + e.getMessage(), e);
             throw new RuntimeException(e);
         } catch (NoSuchAlgorithmException e) {
+            LOG.log(Level.SEVERE, "Unknown algorithm by certificate chain validation: " +
e.getMessage(), e);
             throw new RuntimeException(e);
         } catch (CertPathBuilderException e) {
             LOG.log(Level.INFO, e.getMessage(), e);



Mime
View raw message