Class UserServiceImpl

java.lang.Object
io.openems.edge.core.user.UserServiceImpl
All Implemented Interfaces:
UserService

public class UserServiceImpl extends Object implements UserService
This component handles User authentication.
  • Constructor Details

    • UserServiceImpl

      public UserServiceImpl()
  • Method Details

    • authenticate

      public final Optional<User> authenticate(String username, String password)
      Description copied from interface: UserService
      Authenticates a user with his username and password.
      Specified by:
      authenticate in interface UserService
      Parameters:
      username - the username
      password - the password
      Returns:
      the authenticated User or Empty if authentication failed
    • authenticate

      public final Optional<User> authenticate(String password)
      Description copied from interface: UserService
      Authenticates a user with his password.
      Specified by:
      authenticate in interface UserService
      Parameters:
      password - the password
      Returns:
      the authenticated User or Empty if authentication failed