Interface UserProvider<T extends Login>

Type Parameters:
T - the generic type
All Known Subinterfaces:
JwtUserProvider<T>, UserManager<W,R>

public interface UserProvider<T extends Login>
The Interface UserProvider.
  • Method Summary

    Modifier and Type
    Method
    Description
    authenticate(jakarta.servlet.http.HttpServletRequest rq)
    Authenticate.
    getUserInfo(User user, String userId)
    Gets the user info.
    login(T params, jakarta.servlet.http.HttpServletRequest rq)
    Login.
    void
    logout(User user)
    Logout.
  • Method Details

    • login

      User login(T params, jakarta.servlet.http.HttpServletRequest rq) throws AuthenticationException
      Login.
      Parameters:
      params - the params
      rq - the rq
      Returns:
      the user
      Throws:
      AuthenticationException - the authentication exception
    • getUserInfo

      User getUserInfo(User user, String userId)
      Gets the user info.
      Parameters:
      user - the user
      userId - the user id
      Returns:
      the user info
    • logout

      void logout(User user)
      Logout.
      Parameters:
      user - the user
    • authenticate

      User authenticate(jakarta.servlet.http.HttpServletRequest rq) throws AuthenticationException
      Authenticate.
      Parameters:
      rq - the rq
      Returns:
      the user
      Throws:
      AuthenticationException - the authentication exception