Class EncryptableMapWrapper
java.lang.Object
com.ulisesbocchio.jasyptspringboot.caching.EncryptableMapWrapper
EncryptableMapWrapper class.
Decorates a Map to resolve property values on access through a CachingResolver. All value retrieval methods (get, values, entrySet, forEach, etc.) trigger property resolution. The CachingResolver already contains the delegate PropertySource, so we don't need to duplicate it.- Author:
- Sergio.U.Bocchio
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionEncryptableMapWrapper(CachingResolver cachingResolver) Constructor for EncryptableMapWrapper. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
-
Constructor Details
-
EncryptableMapWrapper
Constructor for EncryptableMapWrapper.
- Parameters:
cachingResolver- aCachingResolverobject that handles property resolution
-
-
Method Details
-
get
-
getOrDefault
- Specified by:
getOrDefaultin interfaceMap<String,Object>
-
values
-
entrySet
-
forEach
-