Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 76A96200CC9 for ; Mon, 17 Jul 2017 22:31:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 752E6163BFE; Mon, 17 Jul 2017 20:31:41 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BB216163BFA for ; Mon, 17 Jul 2017 22:31:40 +0200 (CEST) Received: (qmail 53859 invoked by uid 500); 17 Jul 2017 20:31:39 -0000 Mailing-List: contact commits-help@geode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.apache.org Delivered-To: mailing list commits@geode.apache.org Received: (qmail 53844 invoked by uid 99); 17 Jul 2017 20:31:38 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jul 2017 20:31:38 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2894DE8E77; Mon, 17 Jul 2017 20:31:36 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jinmeiliao@apache.org To: commits@geode.apache.org Message-Id: <348a0f8b80da4c7e88a87f1375d1539c@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: geode git commit: GEODE-3166: use the 3 param getCredential interface. Date: Mon, 17 Jul 2017 20:31:36 +0000 (UTC) archived-at: Mon, 17 Jul 2017 20:31:41 -0000 Repository: geode Updated Branches: refs/heads/develop 3b32a3319 -> 27aa7d30e GEODE-3166: use the 3 param getCredential interface. Project: http://git-wip-us.apache.org/repos/asf/geode/repo Commit: http://git-wip-us.apache.org/repos/asf/geode/commit/27aa7d30 Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/27aa7d30 Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/27aa7d30 Branch: refs/heads/develop Commit: 27aa7d30e44134d5f298601fd1233dc3242b50de Parents: 3b32a33 Author: Jinmei Liao Authored: Wed Jul 5 08:59:59 2017 -0700 Committer: Jinmei Liao Committed: Mon Jul 17 13:30:23 2017 -0700 ---------------------------------------------------------------------- .../org/apache/geode/security/AuthInitialize.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/geode/blob/27aa7d30/geode-core/src/main/java/org/apache/geode/security/AuthInitialize.java ---------------------------------------------------------------------- diff --git a/geode-core/src/main/java/org/apache/geode/security/AuthInitialize.java b/geode-core/src/main/java/org/apache/geode/security/AuthInitialize.java index 6b0675a..0efd958 100644 --- a/geode-core/src/main/java/org/apache/geode/security/AuthInitialize.java +++ b/geode-core/src/main/java/org/apache/geode/security/AuthInitialize.java @@ -82,19 +82,19 @@ public interface AuthInitialize extends CacheCallback { * * @return the credentials to be used for the given server * - * @deprecated since Geode 1.0, use getCredentials(Properties). When using Integrated security, - * all members, peer/client will use the same credentials. + * When using Integrated security, all members, peer/client will use the same credentials. + * but we still need to use these params to support the old authenticator */ - @Deprecated - public Properties getCredentials(Properties securityProps, DistributedMember server, - boolean isPeer) throws AuthenticationFailedException; + Properties getCredentials(Properties securityProps, DistributedMember server, boolean isPeer) + throws AuthenticationFailedException; /** - * Implement this since Geode1.0 - * + * * @param securityProps * @return the credentials to be used. It needs to contain "security-username" and * "security-password" + * @deprecated As of Geode 1.3, please implement getCredentials(Properties, DistributedMember, + * boolean) */ default Properties getCredentials(Properties securityProps) { return getCredentials(securityProps, null, true);