Package org.apache.nifi.authorization
Interface UserAndGroups
public interface UserAndGroups
A holder object to provide atomic access to a user and their groups.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UserAndGroups
A static, immutable, empty implementation of the UserAndGroups interface. -
Method Summary
-
Field Details
-
EMPTY
A static, immutable, empty implementation of the UserAndGroups interface.
-
-
Method Details
-
getUser
User getUser()Retrieves the user, or null if the user is unknown- Returns:
- the user with the given identity
-
getGroups
Retrieves the groups for the user, or null if the user is unknown or has no groups.- Returns:
- the set of groups for the given user identity
-