Class IdentityItem
java.lang.Object
com.adobe.marketing.mobile.edge.identity.IdentityItem
Identity is used to clearly distinguish people that are interacting with digital experiences.
An
IdentityItem is intended to be included in an instance of IdentityMap.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIdentityItem(IdentityItem item) Creates a copy of item.IdentityItem(String id) Creates a newIdentityItemwith default valuesauthenticatedState) is set to AMBIGUOUS (@code primaryis set to false AnIdentityItemshould not have an empty or nullidvalue.IdentityItem(String id, AuthenticatedState authenticatedState, boolean primary) Creates a newIdentityItem. -
Method Summary
-
Constructor Details
-
IdentityItem
public IdentityItem(@NonNull String id, @Nullable AuthenticatedState authenticatedState, boolean primary) Creates a newIdentityItem. AnIdentityItemshould not have an empty or nullidvalue. AnIdentityMapwill rejectIdentityItems with null or empty identifiers.- Parameters:
id- id for the item; should not be nullauthenticatedState-AuthenticatedStatefor the item; if none is providedAuthenticatedState.AMBIGUOUSis used as defaultprimary- primary flag for the item- Throws:
IllegalArgumentException- ifidis null
-
IdentityItem
Creates a newIdentityItemwith default valuesauthenticatedState) is set to AMBIGUOUS (@code primaryis set to false AnIdentityItemshould not have an empty or nullidvalue. AnIdentityMapwill rejectIdentityItems with null or empty identifiers.- Parameters:
id- the id for thisIdentityItem; should not be null- Throws:
IllegalArgumentException- ifidis null
-
IdentityItem
Creates a copy of item.- Parameters:
item- AIdentityItemto be copied; should not be null
-
-
Method Details
-
getId
Identity of the consumer in the related namespace.- Returns:
- The id for this identity item
-
getAuthenticatedState
The state this identity is authenticated.- Returns:
- Current
AuthenticatedStatefor this item
-
isPrimary
public boolean isPrimary()Indicates if this identity is the preferred identity. Is used as a hint to help systems better organize how identities are queried.- Returns:
- true if this item is primary, false otherwise
-
toString
-
equals
-
hashCode
public int hashCode()
-