Skip to content

Commit 4446d29

Browse files
wangxin97-02wangxin
andauthored
HBASE-28825 Add deprecation cycle for methods in TokenUtil (#6237)
Co-authored-by: wangxin <wangxin9702@gmail.com> Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Viraj Jasani <vjasani@apache.org>
1 parent f4a999f commit 4446d29

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

  • hbase-server/src/main/java/org/apache/hadoop/hbase/security/token

hbase-server/src/main/java/org/apache/hadoop/hbase/security/token/TokenUtil.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public class TokenUtil {
4545

4646
/**
4747
* See {@link ClientTokenUtil#obtainToken(org.apache.hadoop.hbase.client.AsyncConnection)}.
48-
* @deprecated External users should not use this method. Please post on the HBase dev mailing
49-
* list if you need this method. Internal HBase code should use
48+
* @deprecated External users should not use this method, will be removed in 4.0.0. Please post on
49+
* the HBase dev mailing list if you need this method. Internal HBase code should use
5050
* {@link ClientTokenUtil} instead.
5151
*/
5252
@Deprecated
@@ -58,7 +58,7 @@ public class TokenUtil {
5858
/**
5959
* It was removed in HBase-2.0 but added again as spark code relies on this method to obtain
6060
* delegation token
61-
* @deprecated Since 2.0.0.
61+
* @deprecated Since 2.0.0 and will be removed in 4.0.0.
6262
*/
6363
@Deprecated
6464
public static Token<AuthenticationTokenIdentifier> obtainToken(Configuration conf)
@@ -70,8 +70,8 @@ public static Token<AuthenticationTokenIdentifier> obtainToken(Configuration con
7070

7171
/**
7272
* See {@link ClientTokenUtil#obtainToken(org.apache.hadoop.hbase.client.Connection)}.
73-
* @deprecated External users should not use this method. Please post on the HBase dev mailing
74-
* list if you need this method. Internal HBase code should use
73+
* @deprecated External users should not use this method, will be removed in 4.0.0. Please post on
74+
* the HBase dev mailing list if you need this method. Internal HBase code should use
7575
* {@link ClientTokenUtil} instead.
7676
*/
7777
@Deprecated
@@ -82,8 +82,8 @@ public static Token<AuthenticationTokenIdentifier> obtainToken(Connection conn)
8282

8383
/**
8484
* See {@link ClientTokenUtil#toToken(Token)}.
85-
* @deprecated External users should not use this method. Please post on the HBase dev mailing
86-
* list if you need this method. Internal HBase code should use
85+
* @deprecated External users should not use this method, will be removed in 4.0.0. Please post on
86+
* the HBase dev mailing list if you need this method. Internal HBase code should use
8787
* {@link ClientTokenUtil} instead.
8888
*/
8989
@Deprecated
@@ -93,8 +93,8 @@ public static AuthenticationProtos.Token toToken(Token<AuthenticationTokenIdenti
9393

9494
/**
9595
* See {@link ClientTokenUtil#obtainToken(Connection, User)}.
96-
* @deprecated External users should not use this method. Please post on the HBase dev mailing
97-
* list if you need this method. Internal HBase code should use
96+
* @deprecated External users should not use this method, will be removed in 4.0.0. Please post on
97+
* the HBase dev mailing list if you need this method. Internal HBase code should use
9898
* {@link ClientTokenUtil} instead.
9999
*/
100100
@Deprecated
@@ -114,8 +114,8 @@ public static void obtainAndCacheToken(final Connection conn, User user)
114114
/**
115115
* See
116116
* {@link ClientTokenUtil#toToken(org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.Token)}.
117-
* @deprecated External users should not use this method. Please post on the HBase dev mailing
118-
* list if you need this method. Internal HBase code should use
117+
* @deprecated External users should not use this method, will be removed in 4.0.0. Please post on
118+
* the HBase dev mailing list if you need this method. Internal HBase code should use
119119
* {@link ClientTokenUtil} instead.
120120
*/
121121
@Deprecated

0 commit comments

Comments
 (0)