Class User
java.lang.Object
tech.lastbox.lastshield.basicauth.entity.User
@Entity
@ConditionalOnProperty(name="lastshield.basicauth",
havingValue="true")
public class User
extends Object
Represents a User entity in the system.
This class contains user information such as name, username, password, and role.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
User
public User()Default constructor for the User class. -
User
Constructor for creating a new User with the specified name, username, and password.The default role is set to "USER".
- Parameters:
name- the name of the user.username- the unique username of the user.password- the password of the user.
-
-
Method Details