Class PropertyToEntityDescriptorConverter

java.lang.Object
se.swedenconnect.spring.saml.idp.metadata.PropertyToEntityDescriptorConverter
All Implemented Interfaces:
Aware, ApplicationContextAware, Converter<String,org.opensaml.saml.saml2.metadata.EntityDescriptor>

public class PropertyToEntityDescriptorConverter extends Object implements Converter<String,org.opensaml.saml.saml2.metadata.EntityDescriptor>, ApplicationContextAware
A Converter that gets the property value (e.g., classpath:metadata.xml) and instantiates an EntityDescriptor object.

To use this converter it has to be instantiated as a bean and then registered in the registry using ConverterRegistry.addConverter(Converter).

If you are using Spring Boot, do:

 @Bean
 @ConfigurationPropertiesBinding
 public PropertyToEntityDescriptorConverter propertyToEntityDescriptorConverter() {
   return new PropertyToEntityDescriptorConverter();
 }
 
Author:
Martin Lindström