Package io.openems.edge.common.test
Class DummyUserService
java.lang.Object
io.openems.edge.common.test.DummyUserService
- All Implemented Interfaces:
UserService
Simulates a
UserService
for the OpenEMS Component test framework.-
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
-
DummyUserService
-
-
Method Details
-
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
-
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
-