Interface Privilege

All Known Subinterfaces:
Privilege.AlternativePrivilege, Privilege.CompositePrivilege, Privilege.IndividualPrivilege, Privilege.InheritablePrivilege, Privilege.NonInheritablePrivilege

public interface Privilege
Represents an individual or composite privilege.

Composite privileges consist of multiple individual privileges.

External representations, for example, when serialized as JSON, prefer composite privileges over individual ones. This means that if a privilege set contains all privileges included in a composite privilege, only the composite privilege is serialized. If multiple composite privileges match, all matching ones are serialized.