Repository: hbase Updated Branches: refs/heads/branch-1 f976b3a8a -> 2a8e62f8e
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/2a8e62f8 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/2a8e62f8 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/2a8e62f8 Branch: refs/heads/branch-1 Commit: 2a8e62f8eeb2950300cae10c62f658fe140da854 Parents: f976b3a Author: maoling <maoling199210...@sina.com> Authored: Mon Mar 12 22:01:16 2018 +0800 Committer: Sean Busbey <bus...@apache.org> Committed: Thu Mar 22 09:56:43 2018 -0500 ---------------------------------------------------------------------- .../hbase/security/token/AuthenticationTokenIdentifier.java | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/2a8e62f8/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 + ")"; + } }