Class RoleDescriptor.IndicesPrivileges.ImplicitlyGranted

java.lang.Object
org.elasticsearch.xpack.core.security.authz.RoleDescriptor.IndicesPrivileges
org.elasticsearch.xpack.core.security.authz.RoleDescriptor.IndicesPrivileges.ImplicitlyGranted
All Implemented Interfaces:
Comparable<RoleDescriptor.IndicesPrivileges>, Writeable, ToXContent, ToXContentObject
Enclosing class:
RoleDescriptor.IndicesPrivileges

public static final class RoleDescriptor.IndicesPrivileges.ImplicitlyGranted extends RoleDescriptor.IndicesPrivileges
In-memory marker subclass used only when rendering the get-roles API response. It carries no extra state and inherits RoleDescriptor.IndicesPrivileges.hashCode(), RoleDescriptor.IndicesPrivileges.compareTo(org.elasticsearch.xpack.core.security.authz.RoleDescriptor.IndicesPrivileges), and RoleDescriptor.IndicesPrivileges.writeTo(org.elasticsearch.common.io.stream.StreamOutput) unchanged from its parent. The implicit-grant marker is therefore not serialized over the wire and not persisted to the .security index.

The marker is surfaced exclusively via toXContent(org.elasticsearch.xcontent.XContentBuilder, org.elasticsearch.xcontent.ToXContent.Params), which appends an "implicitly_granted": true field to the rendered indices privilege entry. There is no parser support for this field; PUT requests that include it will be rejected as an unknown field by RoleDescriptor.parseIndex(java.lang.String, org.elasticsearch.xcontent.XContentParser, boolean).