public class User extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
DFAULT_USER_NAME
Default user name.
|
Constructor and Description |
---|
User()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
authorize(String passwd) |
static User |
create(String name)
Create empty user by login name.
|
static User |
create(String name,
String passwd)
Create new user.
|
static User |
defaultUser()
Create new user.
|
boolean |
equals(Object o) |
int |
hashCode() |
String |
name() |
static @Nullable String |
password(String passwd) |
String |
toString() |
public static final String DFAULT_USER_NAME
public String name()
public static User create(String name, String passwd)
name
- User name.passwd
- Plain text password.public static User create(String name)
name
- User name.public static User defaultUser()
@Nullable public static @Nullable String password(String passwd)
passwd
- Plain text password.public boolean authorize(String passwd)
passwd
- Plain text password.true
If user authorized, otherwise returns false
.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021