- java.lang.Object
-
- com.gluonhq.cloudlink.client.user.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 Summary
Constructors Constructor Description User()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEmail()
Get the email address of this user.String
getKey()
Get the key that uniquely identifies this user within a Gluon CloudLink application.LoginMethod.Type
getLoginMethod()
Get the login method that was used when authenticating this user.String
getLoginMethodIdentifier()
String
getName()
Get the name of this user.String
getNetworkId()
Get the unique id within a social network for this user.String
getNick()
Get the nick name of this user.String
getPicture()
Get the URL to the profile picture of this user.void
setEmail(String email)
Set the email address for this user.void
setKey(String key)
Set the key that uniquely identifies this user.void
setLoginMethod(LoginMethod.Type loginMethod)
Sets the login method that was used when authenticating this user.void
setLoginMethodIdentifier(String loginMethodIdentifier)
void
setName(String name)
Set the name for this user.void
setNetworkId(String networkId)
Set the unique id within a social network for this user.void
setNick(String nick)
Set the nick name for this user.void
setPicture(String picture)
Set the URL to the profile picture for this user.String
toString()
-
-
-
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 theLoginMethod.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.
-
-