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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.opensaml.saml.saml2.metadata.EntityDescriptor
void
setApplicationContext
(ApplicationContext applicationContext)
-
Constructor Details
-
PropertyToEntityDescriptorConverter
public PropertyToEntityDescriptorConverter()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(@Nonnull ApplicationContext applicationContext) throws BeansException - Specified by:
setApplicationContext
in interfaceApplicationContextAware
- Throws:
BeansException
-
convert
-