Module org.elasticsearch.xcore
Class ConfigurableClusterPrivileges
java.lang.Object
org.elasticsearch.xpack.core.security.authz.privilege.ConfigurableClusterPrivileges
Static utility class for working with
ConfigurableClusterPrivilege instances-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTheManageApplicationPrivilegesprivilege is aConfigurableClusterPrivilegethat grants the ability to execute actions related to the management of application privileges (Get, Put, Delete) for a subset of applications (identified by a wildcard-aware application-name).static classstatic classTheConfigurableClusterPrivileges.WriteProfileDataPrivilegesprivilege is aConfigurableClusterPrivilegethat grants the ability to write thedataandaccesssections of any user profile. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConfigurableClusterPrivilege[]static final Writeable.Reader<ConfigurableClusterPrivilege> static final Writeable.Writer<ConfigurableClusterPrivilege> -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ConfigurableClusterPrivilege> parse(org.elasticsearch.xcontent.XContentParser parser) Read a list of privileges from the parser.static ConfigurableClusterPrivilege[]readArray(StreamInput in) Utility method to read an array ofConfigurableClusterPrivilegeobjects from aStreamInputstatic org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params, Collection<ConfigurableClusterPrivilege> privileges) Writes a single object value to thebuilderthat contains each of the provided privileges.static voidwriteArray(StreamOutput out, ConfigurableClusterPrivilege[] privileges) Utility method to write an array ofConfigurableClusterPrivilegeobjects to aStreamOutput
-
Field Details
-
EMPTY_ARRAY
-
READER
-
WRITER
-
-
Method Details
-
readArray
Utility method to read an array ofConfigurableClusterPrivilegeobjects from aStreamInput- Throws:
IOException
-
writeArray
public static void writeArray(StreamOutput out, ConfigurableClusterPrivilege[] privileges) throws IOException Utility method to write an array ofConfigurableClusterPrivilegeobjects to aStreamOutput- Throws:
IOException
-
toXContent
public static org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params, Collection<ConfigurableClusterPrivilege> privileges) throws IOException Writes a single object value to thebuilderthat contains each of the provided privileges. The privileges are grouped according to theircategories- Throws:
IOException
-
parse
public static List<ConfigurableClusterPrivilege> parse(org.elasticsearch.xcontent.XContentParser parser) throws IOException Read a list of privileges from the parser. The parser should be positioned at theXContentParser.Token.START_OBJECTtoken for the privileges value- Throws:
IOException
-