Interface UserLogin

All Superinterfaces:
CurrentUser

public interface UserLogin extends CurrentUser
  • Field Details

  • Method Details

    • clear

      void clear()
      Reset the login, making the user anonymous
    • reload

      void reload(UserEntity account)
      Change to represent the named user
      Parameters:
      account -
    • isAdmin

      default boolean isAdmin()
    • isLocal

      boolean isLocal()
    • getName

      String getName()
      Description copied from interface: CurrentUser
      Get the name of the current user
      Specified by:
      getName in interface CurrentUser
      Returns:
      the name if known, otherwise null
    • getId

      Integer getId()
    • getEmail

      String getEmail()
    • getExpires

      default org.joda.time.DateTime getExpires()
      Description copied from interface: CurrentUser
      Get the instant when the login must expire (or null if it will never expire or has not come through an authentication system that uses expiration)
      Specified by:
      getExpires in interface CurrentUser
      Returns:
    • getAuthType

      default String getAuthType()
      Description copied from interface: CurrentUser
      Return the type of authentication used
      Specified by:
      getAuthType in interface CurrentUser
      Returns:
    • isLoggedIn

      default boolean isLoggedIn()
    • isAnonymous

      default boolean isAnonymous()
      Description copied from interface: CurrentUser
      Return true if the user is not authenticated
      Specified by:
      isAnonymous in interface CurrentUser
      Returns:
      true if the user is not authenticated, false if the user is authenticated
    • getUsername

      default String getUsername()
      Description copied from interface: CurrentUser
      Get the username of the current user
      Specified by:
      getUsername in interface CurrentUser
      Returns:
      the username if known, otherwise null if not logged in (i.e. anonymous)
    • getClaims

      default Map<String,Object> getClaims()
      Description copied from interface: CurrentUser
      Get all the (verified) claims for this user. The returned collection MUST NOT be modified. Returns an empty collection if no claims were made
      Specified by:
      getClaims in interface CurrentUser
      Returns:
    • getAccessRefuser

      default AccessRefuser getAccessRefuser()
      Specified by:
      getAccessRefuser in interface CurrentUser