Package com.nickuc.login.api.types
Interface AccountData
- All Known Implementing Classes:
AccountDataImpl
public interface AccountData
Interface used to encapsulate the data of an nLogin account.
An instance can be obtained through the nLoginAPI.getAccount(Identity)
method.
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
comparePassword
(String plainPassword) Checks that the password you provided is valid.Returns the registered bedrock ID of this account.Returns the creation date of this account.Returns the registered discord id of this account.getEmail()
Returns the registered email of this account.Returns the registered hashed password of this account.getId()
Returns the registered id of this account.Returns the last language of this account.default String
Returns the registered last address of this account.Returns the registered last IP address of this account.Returns the last login of this account.Returns the registered last name of this account.Returns the registered Mojang ID of this account.Returns the settings of this account.getType()
Returns the type of this account.Returns the registered unique ID of this account.
-
Method Details
-
getId
Returns the registered id of this account. It will not be present if the account is not stored in database yet.- Since:
- API v3
-
getType
Returns the type of this account. It will not be present if the account is not registered.- Since:
- API v3
-
getLastName
Returns the registered last name of this account.- Since:
- API v3
-
getUniqueId
Returns the registered unique ID of this account.- Since:
- API v3
-
getMojangId
Returns the registered Mojang ID of this account.- Since:
- API v3
-
getBedrockId
Returns the registered bedrock ID of this account.- Since:
- API v3
-
getHashedPassword
Returns the registered hashed password of this account.- Since:
- API v3
-
comparePassword
Checks that the password you provided is valid.- Parameters:
plainPassword
- Plain password to be compared (not hashed).- Returns:
- true if the password is valid.
- Since:
- API v3
-
getLastAddress
Returns the registered last address of this account.- Since:
- API v3
-
getLastIP
Returns the registered last IP address of this account.- Since:
- API v4
-
getLastLogin
Returns the last login of this account.- Since:
- API v3
-
getCreationDate
Returns the creation date of this account.- Since:
- API v3
-
getEmail
Returns the registered email of this account.- Since:
- API v3
-
getDiscordId
Returns the registered discord id of this account.- Since:
- API v3
-
getSettings
Returns the settings of this account. The returned value is read-only.- Since:
- API v3
-
getLanguage
Returns the last language of this account.- Since:
- API v3
-