Class ElasticsearchEncryptionAsyncClient

java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchEncryptionAsyncClient>
co.elastic.clients.elasticsearch.encryption.ElasticsearchEncryptionAsyncClient
All Implemented Interfaces:
Closeable, AutoCloseable

public class ElasticsearchEncryptionAsyncClient extends ApiClient<ElasticsearchTransport,ElasticsearchEncryptionAsyncClient>
Client for the encryption namespace.
  • Constructor Details

  • Method Details

    • withTransportOptions

      public ElasticsearchEncryptionAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions)
      Description copied from class: ApiClient
      Creates a new client with some request options
      Specified by:
      withTransportOptions in class ApiClient<ElasticsearchTransport,ElasticsearchEncryptionAsyncClient>
    • reset

      public CompletableFuture<ResetResponse> reset(ResetRequest request)
      Reset the project encryption key.

      Destroy the current project encryption key (PEK) and generate a new one. This is the recovery path for when the on-disk encrypted PEK becomes permanently inaccessible, for example because the key encryption material protecting it was lost.

      All data that was encrypted under the destroyed key becomes permanently unrecoverable. Each feature that stores encrypted data decides how to handle its own data during the reset: some features drop the encrypted values entirely, while others preserve the rest of the affected data and only clear the values that can no longer be decrypted.

      Because this operation causes permanent data loss, it requires the accept_data_loss query parameter to be set to true.

      See Also:
    • reset

      Reset the project encryption key.

      Destroy the current project encryption key (PEK) and generate a new one. This is the recovery path for when the on-disk encrypted PEK becomes permanently inaccessible, for example because the key encryption material protecting it was lost.

      All data that was encrypted under the destroyed key becomes permanently unrecoverable. Each feature that stores encrypted data decides how to handle its own data during the reset: some features drop the encrypted values entirely, while others preserve the rest of the affected data and only clear the values that can no longer be decrypted.

      Because this operation causes permanent data loss, it requires the accept_data_loss query parameter to be set to true.

      Parameters:
      fn - a function that initializes a builder to create the ResetRequest
      See Also: