/** * Creates a new external identity ref with the given id and provider name * @param id the id of the identity. * @param providerName the name of the identity provider */ public ExternalIdentityRef(@NotNull String id, @Nullable String providerName) { this.id = id; this.providerName = (providerName == null || providerName.isEmpty()) ? null : providerName; StringBuilder b = new StringBuilder(); escape(b, id); if (this.providerName != null) { b.append(';'); escape(b, this.providerName); } string = b.toString(); }