Class User


  • public class User
    extends Object
    The User class contains information about a user that was authenticated at Gluon CloudLink using one of the login methods that are configured for a Gluon CloudLink application.
    • Constructor Detail

      • User

        public User()
    • Method Detail

      • getKey

        public String getKey()
        Get the key that uniquely identifies this user within a Gluon CloudLink application.
        Returns:
        The unique key of the user.
      • setKey

        public void setKey​(String key)
        Set the key that uniquely identifies this user.
        Parameters:
        key - The key for this user.
      • getName

        public String getName()
        Get the name of this user.
        Returns:
        The name of the user.
      • setName

        public void setName​(String name)
        Set the name for this user.
        Parameters:
        name - The name for this user.
      • getNick

        public String getNick()
        Get the nick name of this user.
        Returns:
        The nick name of the user.
      • setNick

        public void setNick​(String nick)
        Set the nick name for this user.
        Parameters:
        nick - The nick name for the user.
      • getPicture

        public String getPicture()
        Get the URL to the profile picture of this user.
        Returns:
        The URL to the profile picture of this user.
      • setPicture

        public void setPicture​(String picture)
        Set the URL to the profile picture for this user.
        Parameters:
        picture - The URL to the profile picture for this user.
      • getEmail

        public String getEmail()
        Get the email address of this user.
        Returns:
        The email address of the user.
      • setEmail

        public void setEmail​(String email)
        Set the email address for this user.
        Parameters:
        email - The email address for the user.
      • getLoginMethodIdentifier

        public String getLoginMethodIdentifier()
      • setLoginMethodIdentifier

        public void setLoginMethodIdentifier​(String loginMethodIdentifier)
      • getLoginMethod

        public LoginMethod.Type getLoginMethod()
        Get the login method that was used when authenticating this user.
        Returns:
        The login method used for authentication.
      • setLoginMethod

        public void setLoginMethod​(LoginMethod.Type loginMethod)
        Sets the login method that was used when authenticating this user.
        Parameters:
        loginMethod - The login method used for authentication.
      • getNetworkId

        public String getNetworkId()
        Get the unique id within a social network for this user.
        Returns:
        The unique id of the social network that was used to authenticate this user.
      • setNetworkId

        public void setNetworkId​(String networkId)
        Set the unique id within a social network for this user. When the user was authenticated with the LoginMethod.Type.PASSWORD login method, the value will be set to the nick name of the user.
        Parameters:
        networkId - The unique id of the social network that was used to authenticate this user.