Interface UserService

All Known Implementing Classes:
DummyUserService, UserServiceImpl

public interface UserService
  • Method Details

    • authenticate

      Optional<User> authenticate(String password)
      Authenticates a user with his password.
      Parameters:
      password - the password
      Returns:
      the authenticated User or Empty if authentication failed
    • authenticate

      Optional<User> authenticate(String username, String password)
      Authenticates a user with his username and password.
      Parameters:
      username - the username
      password - the password
      Returns:
      the authenticated User or Empty if authentication failed