Class InternalPropertyEncryption
java.lang.Object
org.neo4j.driver.internal.encryption.AbstractPropertyEncryption<EncapsulatedKeyManager>
org.neo4j.driver.internal.encryption.InternalPropertyEncryption
- All Implemented Interfaces:
BasePropertyEncryption, PropertyEncryption
public final class InternalPropertyEncryption
extends AbstractPropertyEncryption<EncapsulatedKeyManager>
implements PropertyEncryption
-
Field Summary
Fields inherited from class AbstractPropertyEncryption
nameToHandler -
Constructor Summary
ConstructorsConstructorDescriptionInternalPropertyEncryption(Map<String, PropertyEncryptionHandler> nameToHandler, AEADEncryption aeadEncryption, DriverObservationProvider observationProvider) -
Method Summary
Modifier and TypeMethodDescriptiondecrypt(PropertyDecryptionRequest decryptionRequest) Decrypts the value according to the providedPropertyDecryptionRequest.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 PropertyEncryption
keyManager
-
Constructor Details
-
InternalPropertyEncryption
public InternalPropertyEncryption(Map<String, PropertyEncryptionHandler> nameToHandler, AEADEncryption aeadEncryption, DriverObservationProvider observationProvider)
-
-
Method Details
-
encryptToBytes
Description copied from interface:PropertyEncryptionEncrypts the value according to the providedPropertyEncryptionRequest.- Specified by:
encryptToBytesin interfacePropertyEncryption- Parameters:
encryptionRequest- the encryption request, must not be null- Returns:
- the encoded encrypted value with its metadata
-
decrypt
Description copied from interface:PropertyEncryptionDecrypts the value according to the providedPropertyDecryptionRequest.- Specified by:
decryptin interfacePropertyEncryption- Parameters:
decryptionRequest- the decryption request, must not be null- Returns:
- the decrypted value
-
keyManager
Description copied from interface:PropertyEncryptionReturns the key manager for the specified property encryption profile.- Specified by:
keyManagerin interfacePropertyEncryption- Parameters:
profileName- the profile name, may be null when only a single profile is configured- Returns:
- the key manager
-