Class UserInfoResult


  • public class UserInfoResult
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String email  
      protected java.lang.Boolean emailVerified  
      protected java.lang.String familyName  
      protected java.lang.String givenName  
      protected java.lang.String iss  
      protected java.lang.String sub  
    • Constructor Summary

      Constructors 
      Constructor Description
      UserInfoResult()
      None
      UserInfoResult​(java.lang.String familyName, java.lang.String givenName, java.lang.String email, java.lang.Boolean emailVerified, java.lang.String iss, java.lang.String sub)
      Use newBuilder() to create instances of this class without specifying values for all optional fields.
    • Field Detail

      • familyName

        @Nullable
        protected final java.lang.String familyName
      • givenName

        @Nullable
        protected final java.lang.String givenName
      • email

        @Nullable
        protected final java.lang.String email
      • emailVerified

        @Nullable
        protected final java.lang.Boolean emailVerified
      • iss

        @Nonnull
        protected final java.lang.String iss
      • sub

        @Nonnull
        protected final java.lang.String sub
    • Constructor Detail

      • UserInfoResult

        public UserInfoResult​(@Nullable
                              java.lang.String familyName,
                              @Nullable
                              java.lang.String givenName,
                              @Nullable
                              java.lang.String email,
                              @Nullable
                              java.lang.Boolean emailVerified,
                              @Nonnull
                              java.lang.String iss,
                              @Nonnull
                              java.lang.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:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • UserInfoResult

        public UserInfoResult()
        None

        The default values for unset fields will be used.

    • Method Detail

      • getFamilyName

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

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

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

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

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

        @Nonnull
        public java.lang.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 java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

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

        public java.lang.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