Package zendesk.core
Class AnonymousIdentity
- java.lang.Object
-
- zendesk.core.AnonymousIdentity
-
- All Implemented Interfaces:
- Identity
public final class AnonymousIdentity extends java.lang.Object implements Identity
This class models an identity which is used to identify an End User within a Zendesk instance.
Please use theAnonymousIdentity.Builderto create an instance of this class. A UUID will be created if necessary and associated with the identity.If you don't know anything about your user please create an Identity like this:
Identity identity = new AnonymousIdentity();If you do know something about the user then you can use the optional methods in the
AnonymousIdentity.Builderto specify them.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classAnonymousIdentity.BuilderThis is a builder class which is used to generate aIdentity
-
Constructor Summary
Constructors Constructor and Description AnonymousIdentity()Creates a new, empty instance of an AnonymousIdentity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object o)java.lang.StringgetEmail()Gets the email address associated with this anonymous identityjava.lang.StringgetName()Gets the name associated with this anonymous identityjava.lang.StringgetSdkGuid()Gets the sdk guid associated with this anonymous identityinthashCode()
-
-
-
Constructor Detail
-
AnonymousIdentity
public AnonymousIdentity()
Creates a new, empty instance of an AnonymousIdentity.This constructor provides the most basic authentication identity, and should be used when no additional information about the user is desired. To include values for name, or email address, use the
AnonymousIdentity.Builder.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getEmail
public java.lang.String getEmail()
Gets the email address associated with this anonymous identity- Returns:
- The email address or null if it was not set
-
getName
public java.lang.String getName()
Gets the name associated with this anonymous identity- Returns:
- The name or null if it was not set
-
getSdkGuid
public java.lang.String getSdkGuid()
Gets the sdk guid associated with this anonymous identity- Returns:
- The sdk guid
-
-