cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject cxf git commit: Fixing build
Date Mon, 12 Oct 2015 16:30:07 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 191fbf014 -> d117a9502


Fixing build


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

Branch: refs/heads/3.0.x-fixes
Commit: d117a9502e2dfcce96cbb3e5d8aaad58ee2d4de8
Parents: 191fbf0
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Mon Oct 12 17:29:57 2015 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Mon Oct 12 17:29:57 2015 +0100

----------------------------------------------------------------------
 .../apache/cxf/rs/security/jose/jaxrs/JwtTokenSecurityContext.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/d117a950/rt/rs/security/jose/src/main/java/org/apache/cxf/rs/security/jose/jaxrs/JwtTokenSecurityContext.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/jose/src/main/java/org/apache/cxf/rs/security/jose/jaxrs/JwtTokenSecurityContext.java
b/rt/rs/security/jose/src/main/java/org/apache/cxf/rs/security/jose/jaxrs/JwtTokenSecurityContext.java
index f100228..427ad73 100644
--- a/rt/rs/security/jose/src/main/java/org/apache/cxf/rs/security/jose/jaxrs/JwtTokenSecurityContext.java
+++ b/rt/rs/security/jose/src/main/java/org/apache/cxf/rs/security/jose/jaxrs/JwtTokenSecurityContext.java
@@ -39,7 +39,7 @@ public class JwtTokenSecurityContext implements LoginSecurityContext {
         principal = new SimplePrincipal(jwt.getClaims().getSubject());
         this.token = jwt;
         if (roleClaim != null && jwt.getClaims().containsProperty(roleClaim)) {
-            roles = new HashSet<>();
+            roles = new HashSet<Principal>();
             String role = jwt.getClaims().getStringProperty(roleClaim).trim();
             for (String r : role.split(",")) {
                 roles.add(new SimpleGroup(r));


Mime
View raw message