Class InternalReactivePropertyEncryption
java.lang.Object
org.neo4j.driver.internal.encryption.AbstractPropertyEncryption<ReactiveEncapsulatedKeyManager>
org.neo4j.driver.internal.encryption.reactivestreams.InternalReactivePropertyEncryption
- All Implemented Interfaces:
BasePropertyEncryption, ReactivePropertyEncryption
public final class InternalReactivePropertyEncryption
extends AbstractPropertyEncryption<ReactiveEncapsulatedKeyManager>
implements ReactivePropertyEncryption
-
Field Summary
Fields inherited from class AbstractPropertyEncryption
nameToHandler -
Constructor Summary
ConstructorsConstructorDescriptionInternalReactivePropertyEncryption(Map<String, PropertyEncryptionHandler> nameToHandler, AEADEncryption aeadEncryption, DriverObservationProvider observationProvider) -
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<Value> decrypt(PropertyDecryptionRequest decryptionRequest) Decrypts the value according to the providedPropertyDecryptionRequest.org.reactivestreams.Publisher<byte[]> encryptToBytes(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
decryptAsync, encryptToBytesAsync, getHandlerModifier and TypeMethodDescriptiondecryptAsync(PropertyDecryptionRequest decryptRequest) CompletionStage<byte[]> encryptToBytesAsync(PropertyEncryptionRequest encryptRequest) protected PropertyEncryptionHandlergetHandler(String profileName) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReactivePropertyEncryption
keyManagerModifier and TypeMethodDescriptiondefault ReactiveEncapsulatedKeyManagerReturns the key manager.
-
Constructor Details
-
InternalReactivePropertyEncryption
public InternalReactivePropertyEncryption(Map<String, PropertyEncryptionHandler> nameToHandler, AEADEncryption aeadEncryption, DriverObservationProvider observationProvider)
-
-
Method Details
-
encryptToBytes
public org.reactivestreams.Publisher<byte[]> encryptToBytes(PropertyEncryptionRequest encryptionRequest) Description copied from interface:ReactivePropertyEncryptionEncrypts the value according to the providedPropertyEncryptionRequest.- Specified by:
encryptToBytesin interfaceReactivePropertyEncryption- Parameters:
encryptionRequest- the encryption request, must not be null- Returns:
- a
Publisherthat publishes the encrypted bytes
-
decrypt
Description copied from interface:ReactivePropertyEncryptionDecrypts the value according to the providedPropertyDecryptionRequest.- Specified by:
decryptin interfaceReactivePropertyEncryption- Parameters:
decryptionRequest- the decryption request, must not be null- Returns:
- a
Publisherthat publishes the decrypted value
-
keyManager
Description copied from interface:ReactivePropertyEncryptionReturns the key manager for the specified property encryption profile.- Specified by:
keyManagerin interfaceReactivePropertyEncryption- Parameters:
profileName- the profile name, may be null when only a single profile is configured- Returns:
- the key manager
-