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/d02bf864 Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/d02bf864 Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/d02bf864 Branch: refs/heads/feature/GEM-1483 Commit: d02bf86422e456d483cc5eb3fd3364b03cb2f0a0 Parents: 87b56a9 Author: Jinmei Liao <jil...@pivotal.io> Authored: Wed Jul 5 08:59:59 2017 -0700 Committer: Ken Howe <kh...@pivotal.io> Committed: Tue Jul 18 07:11:33 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/d02bf864/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 <code>server</code> * - * @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);