Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 356629B62 for ; Mon, 22 Dec 2014 13:14:49 +0000 (UTC) Received: (qmail 83026 invoked by uid 500); 22 Dec 2014 13:14:49 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 82949 invoked by uid 500); 22 Dec 2014 13:14:49 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 82938 invoked by uid 99); 22 Dec 2014 13:14:49 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Dec 2014 13:14:49 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id CDF62A32616; Mon, 22 Dec 2014 13:14:48 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sergeyb@apache.org To: commits@cxf.apache.org Message-Id: <84265db50d024b85b7699078f5a65fb7@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: cxf git commit: Adding a client type property to AccessTokenValidation bean Date: Mon, 22 Dec 2014 13:14:48 +0000 (UTC) Repository: cxf Updated Branches: refs/heads/3.0.x-fixes b773ded29 -> 6a2f8cde2 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/6a2f8cde Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/6a2f8cde Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/6a2f8cde Branch: refs/heads/3.0.x-fixes Commit: 6a2f8cde20745bee06698884a7552a1f65a1b0f5 Parents: b773ded Author: Sergey Beryozkin Authored: Mon Dec 22 13:09:17 2014 +0000 Committer: Sergey Beryozkin Committed: Mon Dec 22 13:14:12 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/6a2f8cde/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 extraProps) { this.extraProps = extraProps; } + + public boolean isClientConfidential() { + return isClientConfidential; + } + + public void setClientConfidential(boolean isConfidential) { + this.isClientConfidential = isConfidential; + } }