HBASE-20047 AuthenticationTokenIdentifier should provide a toString Signed-off-by: Chia-Ping Tsai <chia7...@gmail.com>
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/35e94c98 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/35e94c98 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/35e94c98 Branch: refs/heads/branch-1.3 Commit: 35e94c98785095f83c7dd0c7b97b04678fb9c875 Parents: ecfa9a8 Author: maoling <maoling199210...@sina.com> Authored: Mon Mar 12 22:01:16 2018 +0800 Committer: Andrew Purtell <apurt...@apache.org> Committed: Wed Dec 12 18:08:18 2018 -0800 ---------------------------------------------------------------------- .../hbase/security/token/AuthenticationTokenIdentifier.java | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/35e94c98/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 + ")"; + } }