public Collection<Token<? extends TokenIdentifier>> getTokens() {
    return ugi.getTokens();
  }
Returns all the tokens stored in the user's credentials.
hbase-common/src/main/java/org/apache/hadoop/hbase/security/User.java