Interface KeyEncapsulationService
- All Superinterfaces:
BaseKeyEncapsulationService
@Preview(name="Property Encryption")
public non-sealed interface KeyEncapsulationService
extends BaseKeyEncapsulationService
A service responsible for encapsulating and decapsulating keys.
Implementations may perform blocking operations. The driver adapts synchronous operations to its asynchronous
execution model using the executor().
Implementations MUST supply 256-bit AES keys only.
- Since:
- 6.3.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondecapsulate(byte[] encapsulation, Map<String, String> metadata) Decapsulates encapsulated bytes.encapsulate(KeyEncapsulationOptions options) Creates a new key, encapsulates it and returns the result.default Executorexecutor()Returns theExecutorused by the driver when adapting this synchronous service to its asynchronous execution model.
-
Method Details
-
encapsulate
Creates a new key, encapsulates it and returns the result.- Parameters:
options- the encapsulation options- Returns:
- the encapsulation result
-
decapsulate
-
executor
-