Though Iterable<T> and Map<?, T> (whereas T is not primitive type) are supported, Iterable<String> (e.g. List<String>) and Map<?, String> are not supported.
Supporting all implementations of Iterable<T> and Map<K, V>, is not possible. I suggest we only support types which JPA is supporting which are:
Iterables: ArrayList, Vector, Stack, LinkedList, ArrayDeque, PriorityQueue, HashSet, LinkedHashSet, TreeSet.
Maps: HashMap, Hashtable, WeakHashMap, IdentityHashMap, LinkedHashMap, TreeMap and Properties.
We should also support array of strings.
After implementing this feature we would be able to use Hiss in this manner:
@Encrypted
List<String> list = new ArrayList<>();
@Encrypted
Map<String, String> map = new HashMap<>();
@Encrypted
String[] strings = new String[]{};
Though
Iterable<T>andMap<?, T>(whereas T is not primitive type) are supported,Iterable<String>(e.g.List<String>) andMap<?, String>are not supported.Supporting all implementations of
Iterable<T>andMap<K, V>, is not possible. I suggest we only support types which JPA is supporting which are:Iterables:
ArrayList,Vector,Stack,LinkedList,ArrayDeque,PriorityQueue,HashSet,LinkedHashSet,TreeSet.Maps:
HashMap,Hashtable,WeakHashMap,IdentityHashMap,LinkedHashMap,TreeMapandProperties.We should also support array of strings.
After implementing this feature we would be able to use Hiss in this manner: