Skip to content

Add support for Iterable<String> and Map<?, String> #5

@mkay1375

Description

@mkay1375

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[]{};

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions