Class ApiKey
java.lang.Object
co.elastic.clients.elasticsearch.security.ApiKey
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ApiKey>Json deserializer forApiKey -
Method Summary
Modifier and TypeMethodDescriptionfinal Longcreation()Creation time for the API key in milliseconds.final LongExpiration time for the API key in milliseconds.final Stringid()Required - Id for the API keyfinal BooleanInvalidation status for the API key.final List<Map<String,RoleDescriptor>> The owner user’s permissions associated with the API key.metadata()Metadata of the API keyfinal Stringname()Required - Name of the API key.static ApiKeyfinal Stringrealm()Realm name of the principal for which this API key was created.final Map<String,RoleDescriptor> The role descriptors assigned to this API key when it was created or last updated.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal List<FieldValue>sort()API name:_sorttoString()final Stringusername()Principal for which this API key was created
-
Field Details
-
_DESERIALIZER
Json deserializer forApiKey
-
-
Method Details
-
of
-
creation
Creation time for the API key in milliseconds.API name:
creation -
expiration
Expiration time for the API key in milliseconds.API name:
expiration -
id
Required - Id for the API keyAPI name:
id -
invalidated
Invalidation status for the API key. If the key has been invalidated, it has a value oftrue. Otherwise, it isfalse.API name:
invalidated -
name
Required - Name of the API key.API name:
name -
realm
Realm name of the principal for which this API key was created.API name:
realm -
username
Principal for which this API key was createdAPI name:
username -
metadata
Metadata of the API keyAPI name:
metadata -
roleDescriptors
The role descriptors assigned to this API key when it was created or last updated. An empty role descriptor means the API key inherits the owner user’s permissions.API name:
role_descriptors -
limitedBy
The owner user’s permissions associated with the API key. It is a point-in-time snapshot captured at creation and subsequent updates. An API key’s effective permissions are an intersection of its assigned privileges and the owner user’s permissions.API name:
limited_by -
sort
API name:_sort -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupApiKeyDeserializer
-