cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject cxf-fediz git commit: Minor change
Date Wed, 18 Nov 2015 19:10:34 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/master 3d7c11793 -> 22d7bdc04


Minor change


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

Branch: refs/heads/master
Commit: 22d7bdc04261ba44a604a5cbcfc9c8b75aecb04d
Parents: 3d7c117
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Wed Nov 18 19:10:25 2015 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Wed Nov 18 19:10:25 2015 +0000

----------------------------------------------------------------------
 .../fediz/service/oidc/LocalSamlTokenConverter.java   | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/22d7bdc0/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/LocalSamlTokenConverter.java
----------------------------------------------------------------------
diff --git a/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/LocalSamlTokenConverter.java
b/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/LocalSamlTokenConverter.java
index 94b094b..0c1bb1d 100644
--- a/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/LocalSamlTokenConverter.java
+++ b/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/LocalSamlTokenConverter.java
@@ -66,21 +66,21 @@ public class LocalSamlTokenConverter implements SamlTokenConverter {
                 if (!(c.getValue() instanceof String)) {
                     continue;
                 }
-                if (ClaimTypes.FIRSTNAME == c.getClaimType()) {
+                if (ClaimTypes.FIRSTNAME.equals(c.getClaimType())) {
                     idToken.setGivenName((String)c.getValue());
                     firstName = (String)c.getValue();
-                } else if (ClaimTypes.LASTNAME == c.getClaimType()) {
+                } else if (ClaimTypes.LASTNAME.equals(c.getClaimType())) {
                     idToken.setFamilyName((String)c.getValue());
                     lastName = (String)c.getValue();
-                } else if (ClaimTypes.EMAILADDRESS == c.getClaimType()) {
+                } else if (ClaimTypes.EMAILADDRESS.equals(c.getClaimType())) {
                     idToken.setEmail((String)c.getValue());
-                } else if (ClaimTypes.DATEOFBIRTH == c.getClaimType()) {
+                } else if (ClaimTypes.DATEOFBIRTH.equals(c.getClaimType())) {
                     idToken.setBirthDate((String)c.getValue());
-                } else if (ClaimTypes.HOMEPHONE == c.getClaimType()) {
+                } else if (ClaimTypes.HOMEPHONE.equals(c.getClaimType())) {
                     idToken.setPhoneNumber((String)c.getValue());
-                } else if (ClaimTypes.GENDER == c.getClaimType()) {
+                } else if (ClaimTypes.GENDER.equals(c.getClaimType())) {
                     idToken.setGender((String)c.getValue());
-                } else if (ClaimTypes.WEB_PAGE == c.getClaimType()) {
+                } else if (ClaimTypes.WEB_PAGE.equals(c.getClaimType())) {
                     idToken.setWebsite((String)c.getValue());
                 }
             }


Mime
View raw message