183 Map<String, String> normalizedAttributeValues =
new HashMap<String, String>();
184 for (Map.Entry<?, ?> attributeValueEntry : attributeValues.entrySet()) {
185 String attributeValue = null;
187 Object attributeValueEntryValue = attributeValueEntry.getValue();
188 if (attributeValueEntryValue instanceof String[]) {
189 if (ArrayHelper.isNotEmpty((String[]) attributeValueEntryValue)) {
190 attributeValue = ((String[]) attributeValueEntryValue)[0];
192 }
else if (attributeValueEntryValue instanceof String) {
193 attributeValue = (String) attributeValueEntryValue;
194 }
else if (attributeValueEntryValue != null) {
195 attributeValue = attributeValueEntryValue.toString();
198 if (attributeValue != null) {
199 normalizedAttributeValues.put(
normalizeAttributeName(attributeValueEntry.getKey().toString()), attributeValue);
202 return normalizedAttributeValues;
static String normalizeAttributeName(String attributeName)
Definition: BaseAuthFilterService.java:275