public class ReflectionEncryptionEventListener extends AbstractEncryptionEventListener<ReflectionEncryptionEventListener>
CachedEncryptionEventListener, to support polymorphism.
This means that while instead of walking by pre-cached class reflection, we have to walk by the Document provided and
try to match reflection data to it.cryptVault| Constructor and Description |
|---|
ReflectionEncryptionEventListener(com.bol.crypt.CryptVault cryptVault) |
ReflectionEncryptionEventListener(com.bol.crypt.CryptVault cryptVault,
FieldEncryptedPredicate fieldEncryptedPredicate) |
| Modifier and Type | Method and Description |
|---|---|
void |
onAfterLoad(org.springframework.data.mongodb.core.mapping.event.AfterLoadEvent event) |
void |
onBeforeSave(org.springframework.data.mongodb.core.mapping.event.BeforeSaveEvent event) |
withSilentDecryptionFailureonAfterConvert, onAfterDelete, onAfterSave, onApplicationEvent, onBeforeConvert, onBeforeDeletepublic ReflectionEncryptionEventListener(com.bol.crypt.CryptVault cryptVault)
public ReflectionEncryptionEventListener(com.bol.crypt.CryptVault cryptVault,
FieldEncryptedPredicate fieldEncryptedPredicate)
public void onAfterLoad(org.springframework.data.mongodb.core.mapping.event.AfterLoadEvent event)
onAfterLoad in class org.springframework.data.mongodb.core.mapping.event.AbstractMongoEventListenerpublic void onBeforeSave(org.springframework.data.mongodb.core.mapping.event.BeforeSaveEvent event)
onBeforeSave in class org.springframework.data.mongodb.core.mapping.event.AbstractMongoEventListenerCopyright © 2022. All rights reserved.