Package com.dropbox.core.v2.openid
Class UserInfoResult
java.lang.Object
com.dropbox.core.v2.openid.UserInfoResult
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNoneUserInfoResult(String familyName, String givenName, String email, Boolean emailVerified, String iss, String sub) UsenewBuilder()to create instances of this class without specifying values for all optional fields. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetEmail()Email address of user.If user is email verified.Last name of user.First name of user.getIss()Issuer of token (in this case Dropbox).getSub()An identifier for the user.inthashCode()static UserInfoResult.BuilderReturns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
familyName
-
givenName
-
email
-
emailVerified
-
iss
-
sub
-
-
Constructor Details
-
UserInfoResult
public UserInfoResult(@Nullable String familyName, @Nullable String givenName, @Nullable String email, @Nullable Boolean emailVerified, @Nonnull String iss, @Nonnull String sub) UsenewBuilder()to create instances of this class without specifying values for all optional fields.- Parameters:
familyName- Last name of user.givenName- First name of user.email- Email address of user.emailVerified- If user is email verified.iss- Issuer of token (in this case Dropbox). Must not benull.sub- An identifier for the user. This is the Dropbox account_id, a string value such as dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
UserInfoResult
public UserInfoResult()NoneThe default values for unset fields will be used.
-
-
Method Details
-
getFamilyName
Last name of user.- Returns:
- value for this field, or
nullif not present.
-
getGivenName
First name of user.- Returns:
- value for this field, or
nullif not present.
-
getEmail
Email address of user.- Returns:
- value for this field, or
nullif not present.
-
getEmailVerified
If user is email verified.- Returns:
- value for this field, or
nullif not present.
-
getIss
Issuer of token (in this case Dropbox).- Returns:
- value for this field, or
nullif not present. Defaults to "".
-
getSub
An identifier for the user. This is the Dropbox account_id, a string value such as dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc.- Returns:
- value for this field, or
nullif not present. Defaults to "".
-
newBuilder
Returns a new builder for creating an instance of this class.- Returns:
- builder for this class.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-