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 842678c991
commit fac3b8aad6
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 + ")";
}
}