Encapsulate functionality for resolving tokens and activating identities