Class PropertyToEntityDescriptorConverter
java.lang.Object
se.swedenconnect.spring.saml.idp.metadata.PropertyToEntityDescriptorConverter
- All Implemented Interfaces:
Aware
,ApplicationContextAware
,Converter<String,
EntityDescriptor>
public class PropertyToEntityDescriptorConverter
extends Object
implements Converter<String,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
-
Constructor Details
-
PropertyToEntityDescriptorConverter
public PropertyToEntityDescriptorConverter()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(@Nonnull ApplicationContext applicationContext) throws BeansException - Specified by:
setApplicationContext
in interfaceApplicationContextAware
- Throws:
BeansException
-
convert
- Specified by:
convert
in interfaceConverter<String,
EntityDescriptor>
-