Class ElasticsearchEncryptionClient
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchEncryptionClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionreset(ResetRequest request) Reset the project encryption key.final ResetResponseReset the project encryption key.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchEncryptionClient
-
ElasticsearchEncryptionClient
public ElasticsearchEncryptionClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchEncryptionClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchEncryptionClient>
-
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_lossquery parameter to be set totrue.- Throws:
IOExceptionElasticsearchException- See Also:
-
reset
public final ResetResponse reset(Function<ResetRequest.Builder, ObjectBuilder<ResetRequest>> fn) throws IOException, ElasticsearchExceptionReset 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_lossquery parameter to be set totrue.- Parameters:
fn- a function that initializes a builder to create theResetRequest- Throws:
IOExceptionElasticsearchException- See Also:
-