Class AzureAdCredential.AzureAdUser
java.lang.Object
org.codelibs.fess.app.web.base.login.AzureAdCredential.AzureAdUser
- All Implemented Interfaces:
Serializable,FessUser
- Enclosing class:
AzureAdCredential
Azure AD user implementation providing user information and permissions.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAzureAdUser(com.microsoft.aad.adal4j.AuthenticationResult authResult) Constructs an Azure AD user with the authentication result. -
Method Summary
Modifier and TypeMethodDescriptioncom.microsoft.aad.adal4j.AuthenticationResultGets the Azure AD authentication result.String[]Gets the user's assigned group names.getName()Gets the user's display name.String[]Gets the user's permissions.String[]Gets the user's assigned role names.booleanrefresh()Refreshes the user's information from the underlying data source.voidSets the user's group memberships.voidSets the user's role assignments.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.codelibs.fess.entity.FessUser
isEditable
-
Field Details
-
groups
User's group memberships. -
roles
User's role assignments. -
permissions
User's computed permissions. -
authResult
protected com.microsoft.aad.adal4j.AuthenticationResult authResultAzure AD authentication result.
-
-
Constructor Details
-
AzureAdUser
public AzureAdUser(com.microsoft.aad.adal4j.AuthenticationResult authResult) Constructs an Azure AD user with the authentication result.- Parameters:
authResult- The authentication result from Azure AD.
-
-
Method Details
-
getName
Description copied from interface:FessUserGets the user's display name. -
getRoleNames
Description copied from interface:FessUserGets the user's assigned role names.- Specified by:
getRoleNamesin interfaceFessUser- Returns:
- Array of role names.
-
getGroupNames
Description copied from interface:FessUserGets the user's assigned group names.- Specified by:
getGroupNamesin interfaceFessUser- Returns:
- Array of group names.
-
getPermissions
Description copied from interface:FessUserGets the user's permissions.- Specified by:
getPermissionsin interfaceFessUser- Returns:
- Array of permission strings.
-
refresh
public boolean refresh()Description copied from interface:FessUserRefreshes the user's information from the underlying data source. -
getAuthenticationResult
public com.microsoft.aad.adal4j.AuthenticationResult getAuthenticationResult()Gets the Azure AD authentication result.- Returns:
- The authentication result.
-
setGroups
Sets the user's group memberships.- Parameters:
groups- Array of group names.
-
setRoles
Sets the user's role assignments.- Parameters:
roles- Array of role names.
-