Repository: cxf
Updated Branches:
  refs/heads/master f2c370690 -> 890fbf745


Adding a client type property to AccessTokenValidation bean


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

Branch: refs/heads/master
Commit: 890fbf7458c0b0fa2f25d2106349edcbe7446b87
Parents: f2c3706
Author: Sergey Beryozkin <sberyoz...@talend.com>
Authored: Mon Dec 22 13:09:17 2014 +0000
Committer: Sergey Beryozkin <sberyoz...@talend.com>
Committed: Mon Dec 22 13:09:17 2014 +0000

----------------------------------------------------------------------
 .../rs/security/oauth2/common/AccessTokenValidation.java | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/890fbf74/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/common/AccessTokenValidation.java
----------------------------------------------------------------------
diff --git 
a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/common/AccessTokenValidation.java
 
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/common/AccessTokenValidation.java
index 3d4ea28..3455a21 100644
--- 
a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/common/AccessTokenValidation.java
+++ 
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/common/AccessTokenValidation.java
@@ -39,7 +39,7 @@ public class AccessTokenValidation {
     private String clientId;
     private String clientIpAddress;
     private UserSubject clientSubject;
-    
+    private boolean isClientConfidential;
     private String tokenKey;
     private String tokenType;
     private String tokenGrantType;
@@ -57,6 +57,7 @@ public class AccessTokenValidation {
     public AccessTokenValidation(ServerAccessToken token) {
         this.clientId = token.getClient().getClientId();
         this.clientSubject = token.getClient().getSubject();
+        this.isClientConfidential = token.getClient().isConfidential();
         this.clientIpAddress = token.getClient().getClientIpAddress();
         this.tokenKey = token.getTokenKey();
         this.tokenType = token.getTokenType();
@@ -149,5 +150,13 @@ public class AccessTokenValidation {
     public void setExtraProps(Map<String, String> extraProps) {
         this.extraProps = extraProps;
     }
+
+    public boolean isClientConfidential() {
+        return isClientConfidential;
+    }
+
+    public void setClientConfidential(boolean isConfidential) {
+        this.isClientConfidential = isConfidential;
+    }
     
 }

Reply via email to