Class UserInfoResult

java.lang.Object
com.dropbox.core.v2.openid.UserInfoResult

public class UserInfoResult extends Object
  • Field Details

    • familyName

      @Nullable protected final String familyName
    • givenName

      @Nullable protected final String givenName
    • email

      @Nullable protected final String email
    • emailVerified

      @Nullable protected final Boolean emailVerified
    • iss

      @Nonnull protected final String iss
    • sub

      @Nonnull protected final String sub
  • Constructor Details

    • UserInfoResult

      public UserInfoResult(@Nullable String familyName, @Nullable String givenName, @Nullable String email, @Nullable Boolean emailVerified, @Nonnull String iss, @Nonnull String sub)
      Use newBuilder() 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 be null.
      sub - An identifier for the user. This is the Dropbox account_id, a string value such as dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc. Must not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • UserInfoResult

      public UserInfoResult()
      None

      The default values for unset fields will be used.

  • Method Details

    • getFamilyName

      @Nullable public String getFamilyName()
      Last name of user.
      Returns:
      value for this field, or null if not present.
    • getGivenName

      @Nullable public String getGivenName()
      First name of user.
      Returns:
      value for this field, or null if not present.
    • getEmail

      @Nullable public String getEmail()
      Email address of user.
      Returns:
      value for this field, or null if not present.
    • getEmailVerified

      @Nullable public Boolean getEmailVerified()
      If user is email verified.
      Returns:
      value for this field, or null if not present.
    • getIss

      @Nonnull public String getIss()
      Issuer of token (in this case Dropbox).
      Returns:
      value for this field, or null if not present. Defaults to "".
    • getSub

      @Nonnull public String 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 null if not present. Defaults to "".
    • newBuilder

      public static UserInfoResult.Builder newBuilder()
      Returns a new builder for creating an instance of this class.
      Returns:
      builder for this class.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public String 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