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:04 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 3019c331c -> ac8f8fbc9


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/92fdbae4
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/92fdbae4
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/92fdbae4

Branch: refs/heads/master
Commit: 92fdbae4839004c64852e5ac0f198a811cba8ca9
Parents: 3019c33
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 14:55:14 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/92fdbae4/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