public interface AccountData
An instance can be obtained through the nLoginAPI.getAccount(Identity)
method.
Modifier and Type | Method and Description |
---|---|
default boolean |
comparePassword(java.lang.String plainPassword)
Checks that the password you provided is valid.
|
java.util.Optional<java.util.UUID> |
getBedrockId()
Returns the registered bedrock ID of this account.
|
java.time.Instant |
getCreationDate()
Returns the creation date of this account.
|
java.util.Optional<java.lang.String> |
getDiscordId()
Returns the registered discord id of this account.
|
java.util.Optional<java.lang.String> |
getEmail()
Returns the registered email of this account.
|
java.util.Optional<java.lang.String> |
getHashedPassword()
Returns the registered hashed password of this account.
|
java.util.Optional<java.lang.Long> |
getId()
Returns the registered id of this account.
|
default java.util.Optional<java.lang.String> |
getLanguage()
Returns the last language of this account.
|
default java.lang.String |
getLastAddress()
Returns the registered last address of this account.
|
java.lang.String |
getLastIP()
Returns the registered last IP address of this account.
|
java.time.Instant |
getLastLogin()
Returns the last login of this account.
|
java.lang.String |
getLastName()
Returns the registered last name of this account.
|
java.util.Optional<java.util.UUID> |
getMojangId()
Returns the registered Mojang ID of this account.
|
java.util.Map<java.lang.String,java.lang.Object> |
getSettings()
Returns the settings of this account.
|
AccountType |
getType()
Returns the type of this account.
|
java.util.Optional<java.util.UUID> |
getUniqueId()
Returns the registered unique ID of this account.
|
java.util.Optional<java.lang.Long> getId()
@Nonnull AccountType getType()
@Nonnull java.lang.String getLastName()
java.util.Optional<java.util.UUID> getUniqueId()
java.util.Optional<java.util.UUID> getMojangId()
java.util.Optional<java.util.UUID> getBedrockId()
java.util.Optional<java.lang.String> getHashedPassword()
default boolean comparePassword(java.lang.String plainPassword)
plainPassword
- Plain password to be compared (not hashed).@Nonnull default java.lang.String getLastAddress()
@Nonnull java.lang.String getLastIP()
@Nonnull java.time.Instant getLastLogin()
@Nonnull java.time.Instant getCreationDate()
java.util.Optional<java.lang.String> getEmail()
java.util.Optional<java.lang.String> getDiscordId()
@Nonnull java.util.Map<java.lang.String,java.lang.Object> getSettings()
default java.util.Optional<java.lang.String> getLanguage()