public class ExternalIdentityRef
extends java.lang.Object
ExternalIdentityRef
defines a reference to an external identity.Constructor and Description |
---|
ExternalIdentityRef(@NotNull java.lang.String id,
@Nullable java.lang.String providerName)
Creates a new external identity ref with the given id and provider name
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Tests if the given object is an external identity reference and if it's
getString() is equal to this.
|
static @NotNull ExternalIdentityRef |
fromString(@NotNull java.lang.String str)
Creates an external identity reference from a string representation.
|
@NotNull java.lang.String |
getId()
Returns the id of the external identity.
|
@Nullable java.lang.String |
getProviderName()
Returns the name of the identity provider.
|
@NotNull java.lang.String |
getString()
Returns a string representation of this external identity reference
|
int |
hashCode() |
java.lang.String |
toString() |
public ExternalIdentityRef(@NotNull @NotNull java.lang.String id, @Nullable @Nullable java.lang.String providerName)
id
- the id of the identity.providerName
- the name of the identity provider@Nullable public @Nullable java.lang.String getProviderName()
@NotNull public @NotNull java.lang.String getId()
@NotNull public @NotNull java.lang.String getString()
@NotNull public static @NotNull ExternalIdentityRef fromString(@NotNull @NotNull java.lang.String str)
str
- the stringpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
id
and provider
fields in the comparison as
the string representation already incorporates both.equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
this.getString().hashCode()
Copyright © 2010 - 2020 Adobe. All Rights Reserved