cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [1/2] cxf git commit: Preserve signature verification exception
Date Tue, 28 Apr 2015 14:28:46 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes d540894af -> 819867c54


Preserve signature verification exception


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/8eebccc6
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/8eebccc6
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/8eebccc6

Branch: refs/heads/3.0.x-fixes
Commit: 8eebccc659bc59e7a12e010029b7dcede1f7584e
Parents: d540894
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Tue Apr 28 14:55:14 2015 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Tue Apr 28 15:28:20 2015 +0100

----------------------------------------------------------------------
 .../cxf/rs/security/jose/jws/PublicKeyJwsSignatureVerifier.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/8eebccc6/rt/rs/security/jose/src/main/java/org/apache/cxf/rs/security/jose/jws/PublicKeyJwsSignatureVerifier.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/jose/src/main/java/org/apache/cxf/rs/security/jose/jws/PublicKeyJwsSignatureVerifier.java
b/rt/rs/security/jose/src/main/java/org/apache/cxf/rs/security/jose/jws/PublicKeyJwsSignatureVerifier.java
index 38180f6..d40e66d 100644
--- a/rt/rs/security/jose/src/main/java/org/apache/cxf/rs/security/jose/jws/PublicKeyJwsSignatureVerifier.java
+++ b/rt/rs/security/jose/src/main/java/org/apache/cxf/rs/security/jose/jws/PublicKeyJwsSignatureVerifier.java
@@ -51,8 +51,8 @@ public class PublicKeyJwsSignatureVerifier implements JwsSignatureVerifier
{
                                                AlgorithmUtils.toJavaName(checkAlgorithm(headers.getAlgorithm())),
                                                signatureSpec);
         } catch (Exception ex) {
-            LOG.warning("Invalid signature");
-            throw new JwsException(JwsException.Error.INVALID_SIGNATURE);
+            LOG.warning("Invalid signature: " + ex.getMessage());
+            throw new JwsException(JwsException.Error.INVALID_SIGNATURE, ex);
         }
     }
     protected String checkAlgorithm(String algo) {


Mime
View raw message