Class IndicesPrivileges

  • All Implemented Interfaces:
    ToXContent, ToXContentObject

    public final class IndicesPrivileges
    extends AbstractIndicesPrivileges
    implements ToXContentObject
    Represents privileges over indices. There is a canonical set of privilege names (eg. IndicesPrivileges#READ_PRIVILEGE_NAME) but there is flexibility in the definition of finer grained, more specialized, privileges. This also encapsulates field and document level security privileges. These allow to control what fields or documents are readable or queryable.