cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [2/2] cxf git commit: Spelling correction
Date Mon, 23 Nov 2015 17:35:38 GMT
Spelling correction


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

Branch: refs/heads/3.0.x-fixes
Commit: 849f84601665961fb2c5762408afaad06c0ce5c5
Parents: c9a4511
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Mon Nov 23 17:23:54 2015 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Mon Nov 23 17:35:30 2015 +0000

----------------------------------------------------------------------
 .../org/apache/cxf/rs/security/oauth2/common/UserSubject.java   | 5 +++++
 .../org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java     | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/849f8460/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/common/UserSubject.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/common/UserSubject.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/common/UserSubject.java
index 6972220..55f575b 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/common/UserSubject.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/common/UserSubject.java
@@ -134,7 +134,12 @@ public class UserSubject implements Serializable {
         return am;
     }
 
+    @Deprecated
     public void setAthenticationMethod(AuthenticationMethod method) {
+        setAuthenticationMethod(method);
+    }
+    
+    public void setAuthenticationMethod(AuthenticationMethod method) {
         this.am = method;
     }
     

http://git-wip-us.apache.org/repos/asf/cxf/blob/849f8460/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 57ab9e9..9b4fcba 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
@@ -104,7 +104,7 @@ public final class OAuthUtils {
         UserSubject subject = new UserSubject(securityContext.getUserPrincipal().getName(),
roleNames);
         Message m = JAXRSUtils.getCurrentMessage();
         if (m != null && m.get(AuthenticationMethod.class) != null) {
-            subject.setAthenticationMethod(m.get(AuthenticationMethod.class));
+            subject.setAuthenticationMethod(m.get(AuthenticationMethod.class));
         }
         return subject;
     }


Mime
View raw message