Class IdpEntityDescriptorFactoryBean
- java.lang.Object
-
- org.springframework.beans.factory.config.AbstractFactoryBean<T>
-
- se.litsec.opensaml.core.spring.AbstractSAMLObjectBuilderFactoryBean<EntityDescriptor>
-
- se.litsec.opensaml.saml2.metadata.build.spring.AbstractEntityDescriptorFactoryBean<IdpEntityDescriptorBuilder>
-
- se.litsec.opensaml.saml2.metadata.build.spring.IdpEntityDescriptorFactoryBean
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.FactoryBean<EntityDescriptor>,org.springframework.beans.factory.InitializingBean
public class IdpEntityDescriptorFactoryBean extends AbstractEntityDescriptorFactoryBean<IdpEntityDescriptorBuilder>
A Spring factory bean for creatingEntityDescriptorobjects for Identity Provider metadata using setter methods, and optionally a template object.When a template object is used, the factory is initialized using the
AbstractEntityDescriptorBuilder(java.io.InputStream)orAbstractEntityDescriptorBuilder(EntityDescriptor)constructors. The user may later change, or add, any of the elements and attributes of the template object using the assignment methods.Note that no Signature will be included.
- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
- See Also:
IdpEntityDescriptorBuilder
-
-
Constructor Summary
Constructors Constructor Description IdpEntityDescriptorFactoryBean()Constructor setting up the factory with no template.IdpEntityDescriptorFactoryBean(EntityDescriptor template)Constructor setting up the factory with a templateEntityDescriptor.IdpEntityDescriptorFactoryBean(org.springframework.core.io.Resource resource)Constructor setting up the factory with a templateEntityDescriptorthat is read from a resource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IdpEntityDescriptorBuilder_builder()Returns the internal builder of the correct type.protected AbstractSAMLObjectBuilder<EntityDescriptor>builder()Returns the builder.voidsetAssuranceCertificationUris(List<String> uris)Adds a set of URIs to the assurance certification attribute (urn:oasis:names:tc:SAML:attribute:assurance-certification) that is part of themdattr:EntityAttributeselement that is part of the metadata extension element.voidsetSingleSignOnServices(List<SingleSignOnService> singleSignOnServices)Addsmd:SingleSignOnServiceelements to theIDPSSODescriptor.voidsetWantAuthnRequestsSigned(Boolean b)Assigns theWantAuthnRequestsSignedattribute of themd:IDPSSODescriptorelement.-
Methods inherited from class se.litsec.opensaml.saml2.metadata.build.spring.AbstractEntityDescriptorFactoryBean
getObjectType, setCacheDuration, setContactPersons, setDigestMethodsGlobal, setDigestMethodsRole, setEntityAttributesExtension, setEntityCategories, setEntityID, setID, setKeyDescriptors, setNameIDFormats, setOrganization, setSigningMethodsGlobal, setSigningMethodsRole, setSingleLogoutServices, setUiInfoExtension, setValidUntil
-
Methods inherited from class se.litsec.opensaml.core.spring.AbstractSAMLObjectBuilderFactoryBean
createInstance, localizedStringListToVarArgs, stringListToVarArgs, toVarArgs
-
-
-
-
Constructor Detail
-
IdpEntityDescriptorFactoryBean
public IdpEntityDescriptorFactoryBean()
Constructor setting up the factory with no template. This means that the entireEntityDescriptorobject is created from data assigned using set methods.- See Also:
IdpEntityDescriptorBuilder()
-
IdpEntityDescriptorFactoryBean
public IdpEntityDescriptorFactoryBean(org.springframework.core.io.Resource resource) throws XMLParserException, UnmarshallingException, IOExceptionConstructor setting up the factory with a templateEntityDescriptorthat is read from a resource. Users of the bean may now change, add or delete (by usingnullvalues), the elements and attributes of the template object using the setter methods.- Parameters:
resource- the template resource- Throws:
IOException- if the resource can not be readUnmarshallingException- for unmarshalling errorsXMLParserException- for XML parsing errors
-
IdpEntityDescriptorFactoryBean
public IdpEntityDescriptorFactoryBean(EntityDescriptor template) throws UnmarshallingException, MarshallingException
Constructor setting up the factory with a templateEntityDescriptor. Users of the bean may now change, add or delete (by usingnullvalues), the elements and attributes of the template object using the setter methods.- Parameters:
template- the template- Throws:
UnmarshallingException- for unmarshalling errorsMarshallingException- for marshalling errors
-
-
Method Detail
-
setWantAuthnRequestsSigned
public void setWantAuthnRequestsSigned(Boolean b)
Assigns theWantAuthnRequestsSignedattribute of themd:IDPSSODescriptorelement.- Parameters:
b- boolean (ifnull, the attribute is not set)
-
setAssuranceCertificationUris
public void setAssuranceCertificationUris(List<String> uris)
Adds a set of URIs to the assurance certification attribute (urn:oasis:names:tc:SAML:attribute:assurance-certification) that is part of themdattr:EntityAttributeselement that is part of the metadata extension element.- Parameters:
uris- the assurance URI values that should be added- See Also:
AbstractEntityDescriptorFactoryBean.setEntityAttributesExtension(List)
-
setSingleSignOnServices
public void setSingleSignOnServices(List<SingleSignOnService> singleSignOnServices)
Addsmd:SingleSignOnServiceelements to theIDPSSODescriptor.- Parameters:
singleSignOnServices- single sign on service objects (cloned before assignment)
-
_builder
protected IdpEntityDescriptorBuilder _builder()
Returns the internal builder of the correct type.- Specified by:
_builderin classAbstractEntityDescriptorFactoryBean<IdpEntityDescriptorBuilder>- Returns:
- the builder to use
-
builder
protected AbstractSAMLObjectBuilder<EntityDescriptor> builder()
Returns the builder.- Specified by:
builderin classAbstractSAMLObjectBuilderFactoryBean<EntityDescriptor>- Returns:
- the builder
-
-