use of ddf.security.samlp.impl.MetadataConfigurationParser in project ddf by codice.
the class IdpMetadata method parseMetadata.
@VisibleForTesting
@Nullable
protected Map<String, EntityDescriptor> parseMetadata() {
final Map<String, EntityDescriptor> processMap = new ConcurrentHashMap<>();
MetadataConfigurationParser metadataConfigurationParser;
try {
metadataConfigurationParser = new MetadataConfigurationParser(Collections.singletonList(metadata), ed -> processMap.put(ed.getEntityID(), ed));
} catch (IOException e) {
LOGGER.debug("Error parsing SSO metadata", e);
return null;
}
processMap.putAll(metadataConfigurationParser.getEntityDescriptors());
return processMap;
}
Aggregations