Package io.openems.edge.core.user
Class UserServiceImpl
java.lang.Object
io.openems.edge.core.user.UserServiceImpl
- All Implemented Interfaces:
UserService
This component handles User authentication.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(String password) Authenticates a user with his password.authenticate
(String username, String password) Authenticates a user with his username and password.
-
Constructor Details
-
UserServiceImpl
public UserServiceImpl()
-
-
Method Details
-
authenticate
Description copied from interface:UserService
Authenticates a user with his username and password.- Specified by:
authenticate
in interfaceUserService
- Parameters:
username
- the usernamepassword
- the password- Returns:
- the authenticated User or Empty if authentication failed
-
authenticate
Description copied from interface:UserService
Authenticates a user with his password.- Specified by:
authenticate
in interfaceUserService
- Parameters:
password
- the password- Returns:
- the authenticated User or Empty if authentication failed
-