Package com.bol.secure
Class CachedEncryptionEventListener
java.lang.Object
org.springframework.data.mongodb.core.mapping.event.AbstractMongoEventListener
com.bol.secure.AbstractEncryptionEventListener<CachedEncryptionEventListener>
com.bol.secure.CachedEncryptionEventListener
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener
public class CachedEncryptionEventListener
extends AbstractEncryptionEventListener<CachedEncryptionEventListener>
Does all reflection at startup. There is no reflection used at runtime.
Does not support polymorphism and does not need '_class' fields either.
-
Field Summary
Fields inherited from class com.bol.secure.AbstractEncryptionEventListener
cryptVault -
Constructor Summary
ConstructorsConstructorDescriptionCachedEncryptionEventListener(com.bol.crypt.CryptVault cryptVault) CachedEncryptionEventListener(com.bol.crypt.CryptVault cryptVault, FieldEncryptedPredicate fieldEncryptedPredicate) -
Method Summary
Modifier and TypeMethodDescriptionvoidonAfterLoad(org.springframework.data.mongodb.core.mapping.event.AfterLoadEvent event) voidonBeforeSave(org.springframework.data.mongodb.core.mapping.event.BeforeSaveEvent event) Methods inherited from class com.bol.secure.AbstractEncryptionEventListener
withSilentDecryptionFailureMethods inherited from class org.springframework.data.mongodb.core.mapping.event.AbstractMongoEventListener
onAfterConvert, onAfterDelete, onAfterSave, onApplicationEvent, onBeforeConvert, onBeforeDeleteMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
CachedEncryptionEventListener
public CachedEncryptionEventListener(com.bol.crypt.CryptVault cryptVault) -
CachedEncryptionEventListener
public CachedEncryptionEventListener(com.bol.crypt.CryptVault cryptVault, FieldEncryptedPredicate fieldEncryptedPredicate)
-
-
Method Details
-
onAfterLoad
public void onAfterLoad(org.springframework.data.mongodb.core.mapping.event.AfterLoadEvent event) - Overrides:
onAfterLoadin classorg.springframework.data.mongodb.core.mapping.event.AbstractMongoEventListener
-
onBeforeSave
public void onBeforeSave(org.springframework.data.mongodb.core.mapping.event.BeforeSaveEvent event) - Overrides:
onBeforeSavein classorg.springframework.data.mongodb.core.mapping.event.AbstractMongoEventListener
-