@Override
  public Token<?> obtainToken(final BaseWork work, final Set<TableDesc> tables, final Configuration conf) {
    tokenCalls++;
    byte[] idpass = String.valueOf(tokenCalls).getBytes();
    return new Token<>(idpass, idpass, null, SERVICE);
  }
A credential supplier that creates and returns a new token based on an incrementing integer on every call.
ql/src/test/org/apache/hadoop/hive/ql/exec/tez/IncrementalIntDagCredentialSupplier.java