Migrated Token methods to TokenUtil.