Repository: hbase
Updated Branches:
  refs/heads/branch-2 842678c99 -> fac3b8aad


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/fac3b8aa
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/fac3b8aa
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/fac3b8aa

Branch: refs/heads/branch-2
Commit: fac3b8aad6cfbaeb16621318d8bf50b59ef961b9
Parents: 842678c
Author: maoling <maoling199210...@sina.com>
Authored: Mon Mar 12 22:01:16 2018 +0800
Committer: Chia-Ping Tsai <chia7...@gmail.com>
Committed: Mon Mar 12 22:16:22 2018 +0800

----------------------------------------------------------------------
 .../hbase/security/token/AuthenticationTokenIdentifier.java   | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/fac3b8aa/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 13655d5..1e4a529 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 + ")";
+  }
 }

Reply via email to