Class ApiKey
java.lang.Object
co.elastic.clients.elasticsearch.security.ApiKey
- All Implemented Interfaces:
- JsonpSerializable
- See Also:
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ApiKey>Json deserializer forApiKey
- 
Method SummaryModifier and TypeMethodDescriptionfinal Accessaccess()The access granted to cross-cluster API keys.final longcreation()Required - 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 booleanRequired - Invalidation status for the API key.final LongIf the key has been invalidated, invalidation time in milliseconds.final List<Map<String,RoleDescriptor>> The owner user’s permissions associated with the API key.metadata()Required - Metadata of the API keyfinal Stringname()Required - Name of the API key.static ApiKeyfinal StringThe profile uid for the API key owner principal, if requested and if it existsfinal Stringrealm()Required - Realm name of the principal for which this API key was created.final StringRealm type of the principal for which this API key was createdfinal 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()Sorting values when using thesortparameter with thesecurity.query_api_keysAPI.toString()final ApiKeyTypetype()Required - The type of the API key (e.g.final Stringusername()Required - Principal for which this API key was created
- 
Field Details- 
_DESERIALIZERJson deserializer forApiKey
 
- 
- 
Method Details- 
of
- 
idRequired - Id for the API keyAPI name: id
- 
nameRequired - Name of the API key.API name: name
- 
typeRequired - The type of the API key (e.g.restorcross_cluster).API name: type
- 
creationpublic final long creation()Required - Creation time for the API key in milliseconds.API name: creation
- 
expirationExpiration time for the API key in milliseconds.API name: expiration
- 
invalidatedpublic final boolean invalidated()Required - Invalidation status for the API key. If the key has been invalidated, it has a value oftrue. Otherwise, it isfalse.API name: invalidated
- 
invalidationIf the key has been invalidated, invalidation time in milliseconds.API name: invalidation
- 
usernameRequired - Principal for which this API key was createdAPI name: username
- 
realmRequired - Realm name of the principal for which this API key was created.API name: realm
- 
realmTypeRealm type of the principal for which this API key was createdAPI name: realm_type
- 
metadataRequired - Metadata of the API keyAPI name: metadata
- 
roleDescriptorsThe 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
- 
limitedByThe 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
- 
accessThe access granted to cross-cluster API keys. The access is composed of permissions for cross cluster search and cross cluster replication. At least one of them must be specified. When specified, the new access assignment fully replaces the previously assigned access.API name: access
- 
profileUidThe profile uid for the API key owner principal, if requested and if it existsAPI name: profile_uid
- 
sortSorting values when using thesortparameter with thesecurity.query_api_keysAPI.API name: _sort
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
toString
- 
setupApiKeyDeserializer
 
-