You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ap...@apache.org on 2018/12/13 01:45:35 UTC
hbase git commit: HBASE-20047 AuthenticationTokenIdentifier should
provide a toString
Repository: hbase
Updated Branches:
refs/heads/branch-1.4 c66d900d7 -> cd020a0b3
HBASE-20047 AuthenticationTokenIdentifier should provide a toString
Signed-off-by: Chia-Ping Tsai <ch...@gmail.com>
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/cd020a0b
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/cd020a0b
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/cd020a0b
Branch: refs/heads/branch-1.4
Commit: cd020a0b37b3c552554600ebdb85e3492fe1b8bc
Parents: c66d900
Author: maoling <ma...@sina.com>
Authored: Mon Mar 12 22:01:16 2018 +0800
Committer: Andrew Purtell <ap...@apache.org>
Committed: Wed Dec 12 17:45:16 2018 -0800
----------------------------------------------------------------------
.../hbase/security/token/AuthenticationTokenIdentifier.java | 7 +++++++
1 file changed, 7 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/cd020a0b/hbase-client/src/main/java/org/apache/hadoop/hbase/security/token/AuthenticationTokenIdentifier.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/security/token/AuthenticationTokenIdentifier.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/security/token/AuthenticationTokenIdentifier.java
index 4299003..568ace7 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/security/token/AuthenticationTokenIdentifier.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/security/token/AuthenticationTokenIdentifier.java
@@ -186,4 +186,11 @@ public class AuthenticationTokenIdentifier extends TokenIdentifier {
public int hashCode() {
return (int)sequenceNumber;
}
+
+ @Override
+ public String toString() {
+ return "(username=" + username + ", keyId="
+ + keyId + ", issueDate=" + issueDate
+ + ", expirationDate=" + expirationDate + ", sequenceNumber=" + sequenceNumber + ")";
+ }
}