Updated all usages of UserIdentity, now includes optional pvtKey parameter.