From 62fc7fd3ea080a16c4019e7c67c8629cc9088e19 Mon Sep 17 00:00:00 2001 From: maoling Date: Mon, 12 Mar 2018 22:01:16 +0800 Subject: [PATCH] HBASE-20047 AuthenticationTokenIdentifier should provide a toString Signed-off-by: Chia-Ping Tsai --- .../security/token/AuthenticationTokenIdentifier.java | 7 +++++++ 1 file changed, 7 insertions(+) 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 13655d5b232..1e4a529f1ea 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 @@ -187,4 +187,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 + ")"; + } }