Class EntraIdCredential.EntraIdUser

java.lang.Object
org.codelibs.fess.app.web.base.login.EntraIdCredential.EntraIdUser
All Implemented Interfaces:
Serializable, FessUser
Enclosing class:
EntraIdCredential

public static class EntraIdCredential.EntraIdUser extends Object implements FessUser
Entra ID user implementation providing user information and permissions.
See Also:
  • Field Details

    • groups

      protected volatile String[] groups
      User's group memberships.
    • roles

      protected volatile String[] roles
      User's role assignments.
    • permissions

      protected volatile String[] permissions
      User's computed permissions.
    • authResult

      protected com.microsoft.aad.msal4j.IAuthenticationResult authResult
      Entra ID authentication result.
  • Constructor Details

    • EntraIdUser

      public EntraIdUser(com.microsoft.aad.msal4j.IAuthenticationResult authResult)
      Constructs an Entra ID user with the authentication result.
      Parameters:
      authResult - The authentication result from Entra ID.
  • Method Details

    • getName

      public String getName()
      Description copied from interface: FessUser
      Gets the user's display name.
      Specified by:
      getName in interface FessUser
      Returns:
      The user's name.
    • getRoleNames

      public String[] getRoleNames()
      Description copied from interface: FessUser
      Gets the user's assigned role names.
      Specified by:
      getRoleNames in interface FessUser
      Returns:
      Array of role names.
    • getGroupNames

      public String[] getGroupNames()
      Description copied from interface: FessUser
      Gets the user's assigned group names.
      Specified by:
      getGroupNames in interface FessUser
      Returns:
      Array of group names.
    • getPermissions

      public String[] getPermissions()
      Description copied from interface: FessUser
      Gets the user's permissions.
      Specified by:
      getPermissions in interface FessUser
      Returns:
      Array of permission strings.
    • refresh

      public boolean refresh()
      Description copied from interface: FessUser
      Refreshes the user's information from the underlying data source.
      Specified by:
      refresh in interface FessUser
      Returns:
      True if refresh was successful, false otherwise.
    • getAuthenticationResult

      public com.microsoft.aad.msal4j.IAuthenticationResult getAuthenticationResult()
      Gets the Entra ID authentication result.
      Returns:
      The authentication result.
    • setGroups

      public void setGroups(String[] groups)
      Sets the user's group memberships.
      Parameters:
      groups - Array of group names.
    • setRoles

      public void setRoles(String[] roles)
      Sets the user's role assignments.
      Parameters:
      roles - Array of role names.
    • resetPermissions

      public void resetPermissions()
      Resets permissions to force recalculation on next getPermissions() call. This is called after asynchronous parent group lookup completes.