You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/BundledTokenIdentifier.java
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,4 +20,7 @@ public interface BundledTokenIdentifier {
Copy file name to clipboardExpand all lines: hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/security/token/delegation/BundledDelegationTokenIdentifier.java
+44-6Lines changed: 44 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,11 @@ public class BundledDelegationTokenIdentifier extends DelegationTokenIdentifier
23
23
implementsBundledTokenIdentifier {
24
24
25
25
// The current VERSION of the token.
26
-
privatestaticfinalbyteVERSION = 0;
26
+
privatestaticfinalbyteVERSION = 1;
27
+
28
+
// The original serde implementation of this identifier was un-versioned.
29
+
// This denotes the default version for un-versioned tokens.
30
+
privatestaticfinalbyteBASE_VERSION = 0;
27
31
28
32
// The designated main password.
29
33
// This will be empty (byte[0]) if deserialization fails to read any content
@@ -45,22 +49,28 @@ public class BundledDelegationTokenIdentifier extends DelegationTokenIdentifier
45
49
// content for the tokenVersion.
46
50
privatebytetokenVersion;
47
51
48
-
// The original serde implementation of this identifier was un-versioned.
49
-
// This denotes the default version for un-versioned tokens.
Copy file name to clipboardExpand all lines: hadoop-hdfs-project/hadoop-hdfs-client/src/test/java/org/apache/hadoop/hdfs/security/token/delegation/TestBundledDelegationTokenIdentifier.java
0 commit comments