public void filterValuesStrict(Map<?, String> map)
            throws GuacamoleTokenUndefinedException {

        // For each map entry
        for (Map.Entry<?, String> entry : map.entrySet()) {

            // If value is non-null, filter value through this TokenFilter
            String value = entry.getValue();
            if (value != null)
                entry.setValue(filterStrict(value));
            
        }
        
    }
Given an arbitrary map containing String values, replace each non-null
value with the corresponding filtered value. If any token in any string
has no defined value within this TokenFilter, a
GuacamoleTokenUndefinedException will be thrown.

@param map
    The map whose values should be filtered.

@throws GuacamoleTokenUndefinedException
    If at least one token in at least one string has no corresponding
    value.
guacamole-ext/src/main/java/org/apache/guacamole/token/TokenFilter.java