HBASE-20047 AuthenticationTokenIdentifier should provide a toString

Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
maoling 2018-03-12 22:01:16 +08:00 committed by Chia-Ping Tsai
parent 6060d3ba56
commit 62fc7fd3ea
1 changed files with 7 additions and 0 deletions

View File

@ -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 + ")";
}
}