Class User
- java.lang.Object
-
- org.apache.ignite.internal.processors.authentication.User
-
- All Implemented Interfaces:
Serializable
public class User extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringDFAULT_USER_NAMEDefault user name.
-
Constructor Summary
Constructors Constructor Description User()Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanauthorize(String passwd)static Usercreate(String name)Create empty user by login name.static Usercreate(String name, String passwd)Create new user.static UserdefaultUser()Create new user.booleanequals(Object o)inthashCode()Stringname()static @Nullable Stringpassword(String passwd)StringtoString()
-
-
-
Field Detail
-
DFAULT_USER_NAME
public static final String DFAULT_USER_NAME
Default user name.- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public String name()
- Returns:
- User name.
-
create
public static User create(String name, String passwd)
Create new user.- Parameters:
name- User name.passwd- Plain text password.- Returns:
- Created user.
-
create
public static User create(String name)
Create empty user by login name.- Parameters:
name- User name.- Returns:
- User.
-
defaultUser
public static User defaultUser()
Create new user.- Returns:
- Created user.
-
password
@Nullable public static @Nullable String password(String passwd)
- Parameters:
passwd- Plain text password.- Returns:
- Hashed password.
-
authorize
public boolean authorize(String passwd)
- Parameters:
passwd- Plain text password.- Returns:
trueIf user authorized, otherwise returnsfalse.
-
-