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