Interface User


public interface User
Basic user interface.
Author:
Apache MINA Project
  • Method Details

    • getName

      String getName()
      Get the user name.
      Returns:
      The user name, the same used for login
    • getPassword

      String getPassword()
      Get password.
      Returns:
      The users password or null if the user manager can not provide the password
    • getAuthorities

      List<? extends Authority> getAuthorities()
      Get all authorities granted to this user
      Returns:
      All authorities
    • getAuthorities

      List<? extends Authority> getAuthorities(Class<? extends Authority> clazz)
      Get authorities of the specified type granted to this user
      Parameters:
      clazz - The type of Authority
      Returns:
      Authorities of the specified class
    • authorize

      Authorize a AuthorizationRequest for this user
      Parameters:
      request - The AuthorizationRequest to authorize
      Returns:
      A populated AuthorizationRequest if the user was authorized, null otherwise.
    • getMaxIdleTime

      int getMaxIdleTime()
      Get the maximum idle time in seconds. Zero or less idle time means no limit.
      Returns:
      The idle time in seconds
    • getEnabled

      boolean getEnabled()
      Get the user enable status.
      Returns:
      true if the user is enabled
    • getHomeDirectory

      String getHomeDirectory()
      Get the user home directory
      Returns:
      The path to the home directory for the user