Implement TokenGenerator