Skip to content

Commit 8ed0e96

Browse files
HBASE-28825 Add deprecation cycle for methods in TokenUtil (#6237) (#6242)
Co-authored-by: wangxin <wangxin9702@gmail.com> Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Viraj Jasani <vjasani@apache.org> (cherry picked from commit 4446d29) Co-authored-by: WangXin <1458451310@qq.com>
1 parent e830b32 commit 8ed0e96

File tree

1 file changed

+9
-9
lines changed
  • hbase-server/src/main/java/org/apache/hadoop/hbase/security/token

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class TokenUtil {
4343
/**
4444
* It was removed in HBase-2.0 but added again as spark code relies on this method to obtain
4545
* delegation token
46-
* @deprecated Since 2.0.0.
46+
* @deprecated Since 2.0.0 and will be removed in 4.0.0.
4747
*/
4848
@Deprecated
4949
public static Token<AuthenticationTokenIdentifier> obtainToken(Configuration conf)
@@ -55,8 +55,8 @@ public static Token<AuthenticationTokenIdentifier> obtainToken(Configuration con
5555

5656
/**
5757
* See {@link ClientTokenUtil#obtainToken(org.apache.hadoop.hbase.client.Connection)}.
58-
* @deprecated External users should not use this method. Please post on the HBase dev mailing
59-
* list if you need this method. Internal HBase code should use
58+
* @deprecated External users should not use this method, will be removed in 4.0.0. Please post on
59+
* the HBase dev mailing list if you need this method. Internal HBase code should use
6060
* {@link ClientTokenUtil} instead.
6161
*/
6262
@Deprecated
@@ -67,8 +67,8 @@ public static Token<AuthenticationTokenIdentifier> obtainToken(Connection conn)
6767

6868
/**
6969
* See {@link ClientTokenUtil#toToken(Token)}.
70-
* @deprecated External users should not use this method. Please post on the HBase dev mailing
71-
* list if you need this method. Internal HBase code should use
70+
* @deprecated External users should not use this method, will be removed in 4.0.0. Please post on
71+
* the HBase dev mailing list if you need this method. Internal HBase code should use
7272
* {@link ClientTokenUtil} instead.
7373
*/
7474
@Deprecated
@@ -78,8 +78,8 @@ public static AuthenticationProtos.Token toToken(Token<AuthenticationTokenIdenti
7878

7979
/**
8080
* See {@link ClientTokenUtil#obtainToken(Connection, User)}.
81-
* @deprecated External users should not use this method. Please post on the HBase dev mailing
82-
* list if you need this method. Internal HBase code should use
81+
* @deprecated External users should not use this method, will be removed in 4.0.0. Please post on
82+
* the HBase dev mailing list if you need this method. Internal HBase code should use
8383
* {@link ClientTokenUtil} instead.
8484
*/
8585
@Deprecated
@@ -99,8 +99,8 @@ public static void obtainAndCacheToken(final Connection conn, User user)
9999
/**
100100
* See
101101
* {@link ClientTokenUtil#toToken(org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.Token)}.
102-
* @deprecated External users should not use this method. Please post on the HBase dev mailing
103-
* list if you need this method. Internal HBase code should use
102+
* @deprecated External users should not use this method, will be removed in 4.0.0. Please post on
103+
* the HBase dev mailing list if you need this method. Internal HBase code should use
104104
* {@link ClientTokenUtil} instead.
105105
*/
106106
@Deprecated

0 commit comments

Comments
 (0)