Class InternalAsyncPropertyEncryption
java.lang.Object
org.neo4j.driver.internal.encryption.AbstractPropertyEncryption<AsyncEncapsulatedKeyManager>
org.neo4j.driver.internal.encryption.async.InternalAsyncPropertyEncryption
- All Implemented Interfaces:
AsyncPropertyEncryption, BasePropertyEncryption
public final class InternalAsyncPropertyEncryption
extends AbstractPropertyEncryption<AsyncEncapsulatedKeyManager>
implements AsyncPropertyEncryption
-
Field Summary
Fields inherited from class AbstractPropertyEncryption
nameToHandler -
Constructor Summary
ConstructorsConstructorDescriptionInternalAsyncPropertyEncryption(Map<String, PropertyEncryptionHandler> nameToHandler, AEADEncryption aeadEncryption, DriverObservationProvider observationProvider) -
Method Summary
Modifier and TypeMethodDescriptiondecryptAsync(PropertyDecryptionRequest decryptionRequest) Decrypts the value according to the providedPropertyDecryptionRequest.CompletionStage<byte[]> encryptToBytesAsync(PropertyEncryptionRequest encryptionRequest) Encrypts the value according to the providedPropertyEncryptionRequest.keyManager(String profileName) Returns the key manager for the specified property encryption profile.Methods inherited from class AbstractPropertyEncryption
getHandlerModifier and TypeMethodDescriptionprotected PropertyEncryptionHandlergetHandler(String profileName) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AsyncPropertyEncryption
keyManager
-
Constructor Details
-
InternalAsyncPropertyEncryption
public InternalAsyncPropertyEncryption(Map<String, PropertyEncryptionHandler> nameToHandler, AEADEncryption aeadEncryption, DriverObservationProvider observationProvider)
-
-
Method Details
-
encryptToBytesAsync
Description copied from interface:AsyncPropertyEncryptionEncrypts the value according to the providedPropertyEncryptionRequest.- Specified by:
encryptToBytesAsyncin interfaceAsyncPropertyEncryption- Overrides:
encryptToBytesAsyncin classAbstractPropertyEncryption<AsyncEncapsulatedKeyManager>- Parameters:
encryptionRequest- the encryption request, must not be null- Returns:
- a
CompletionStagethat completes with the encrypted bytes
-
decryptAsync
Description copied from interface:AsyncPropertyEncryptionDecrypts the value according to the providedPropertyDecryptionRequest.- Specified by:
decryptAsyncin interfaceAsyncPropertyEncryption- Overrides:
decryptAsyncin classAbstractPropertyEncryption<AsyncEncapsulatedKeyManager>- Parameters:
decryptionRequest- the decryption request, must not be null- Returns:
- a
CompletionStagethat completes with the decrypted value
-
keyManager
Description copied from interface:AsyncPropertyEncryptionReturns the key manager for the specified property encryption profile.- Specified by:
keyManagerin interfaceAsyncPropertyEncryption- Parameters:
profileName- the profile name, may be null when only a single profile is configured- Returns:
- the key manager
-