private void doList() throws Exception {
    for (DelegationTokenIdentifier tokenId : Iterables.filter(getAllDelegationTokenIDs(), selectForDeletion)) {
      System.out.println(tokenId.toString());
    }
  }
Tool to twiddle MetaStore delegation tokens.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/security/DelegationTokenTool.java