Interface UserService

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Optional<User> authenticate​(java.lang.String password)
      Authenticates a user with his password.
      java.util.Optional<User> authenticate​(java.lang.String username, java.lang.String password)
      Authenticates a user with his username and password.
    • Method Detail

      • authenticate

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

        java.util.Optional<User> authenticate​(java.lang.String username,
                                              java.lang.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