public class User
extends java.lang.Object
Constructor and Description |
---|
User(java.lang.String username,
java.lang.String linkedTo,
java.util.UUID linkedToUUID,
java.lang.String passwordHash,
int permissionLevel,
java.util.Collection<java.lang.String> permissions) |
Modifier and Type | Method and Description |
---|---|
boolean |
doesPasswordMatch(java.lang.String password) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getLinkedTo() |
java.util.UUID |
getLinkedToUUID() |
java.lang.String |
getPasswordHash() |
int |
getPermissionLevel()
Deprecated.
|
java.lang.String |
getUsername() |
int |
hashCode() |
void |
setPermissionLevel(int permissionLevel)
Deprecated.
|
java.lang.String |
toString() |
WebUser |
toWebUser() |
public User(java.lang.String username, java.lang.String linkedTo, java.util.UUID linkedToUUID, java.lang.String passwordHash, int permissionLevel, java.util.Collection<java.lang.String> permissions)
public boolean doesPasswordMatch(java.lang.String password)
public WebUser toWebUser()
public java.lang.String getUsername()
public java.lang.String getLinkedTo()
public java.util.UUID getLinkedToUUID()
public java.lang.String getPasswordHash()
@Deprecated public int getPermissionLevel()
@Deprecated public void setPermissionLevel(int permissionLevel)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object