createWithProvider static method

UserId createWithProvider(
  1. String id,
  2. String providerId
)

Create a single identity user identifier for giver provider ID.

id Custom identity provider ID. providerId Identity user ID.

Implementation

static UserId createWithProvider(String id, String providerId) {
  UserId instance = new UserId();
  instance._id = id;
  instance._providerId = providerId;
  return instance;
}