cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Minor updates
Date Fri, 07 Apr 2017 16:23:43 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 2519863ca -> 716092523


Minor updates


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

Branch: refs/heads/master
Commit: 7160925230b482292316a2e9f641619e6304b39d
Parents: 2519863
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Fri Apr 7 17:23:26 2017 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Fri Apr 7 17:23:26 2017 +0100

----------------------------------------------------------------------
 .../org/apache/cxf/rs/security/oauth2/utils/JwtTokenUtils.java     | 2 +-
 .../java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/71609252/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/JwtTokenUtils.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/JwtTokenUtils.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/JwtTokenUtils.java
index 8bfdf32..657d34a 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/JwtTokenUtils.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/JwtTokenUtils.java
@@ -124,7 +124,7 @@ public final class JwtTokenUtils {
             at.getExtraProperties().putAll(extraProperties);
         }
         
-        // At the moment only a string 'x5#S256' cnf property is recognized
+        // At the moment only a string 'x5t#S256' cnf property is recognized
         Map<String, Object> cnf = CastUtils.cast((Map<?, ?>)claims.getClaim(JwtConstants.CLAIM_CONFIRMATION));
         if (cnf != null && cnf.containsKey(JoseConstants.HEADER_X509_THUMBPRINT_SHA256))
{
             String certCnf = cnf.get(JoseConstants.HEADER_X509_THUMBPRINT_SHA256).toString();

http://git-wip-us.apache.org/repos/asf/cxf/blob/71609252/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java
index c742e58..66eac5a 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java
@@ -80,7 +80,7 @@ public final class OAuthUtils {
             byte[] thumbprint = 
                 MessageDigestUtils.createDigest(cert.getEncoded(), MessageDigestUtils.ALGO_SHA_256);
             String encodedThumbprint = Base64UrlUtility.encode(thumbprint);
-            mc.put("x5t#S256", encodedThumbprint);
+            mc.put(JoseConstants.HEADER_X509_THUMBPRINT_SHA256, encodedThumbprint);
         } catch (Exception ex) {
             throw new OAuthServiceException(ex);
         }


Mime
View raw message