Token handler class