public class SpEntityDescriptorFactoryBean extends AbstractEntityDescriptorFactoryBean<SpEntityDescriptorBuilder>
EntityDescriptor
objects for Service Provider metadata using setter
methods, and optionally a template object.
When a template object is used, the factory is initialized using the
AbstractEntityDescriptorBuilder.AbstractEntityDescriptorBuilder(java.io.InputStream)
or
AbstractEntityDescriptorBuilder.AbstractEntityDescriptorBuilder(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.
SpEntityDescriptorBuilder
Constructor and Description |
---|
SpEntityDescriptorFactoryBean()
Constructor setting up the factory with no template.
|
SpEntityDescriptorFactoryBean(EntityDescriptor template)
Constructor setting up the factory with a template
EntityDescriptor . |
SpEntityDescriptorFactoryBean(org.springframework.core.io.Resource resource)
Constructor setting up the factory with a template
EntityDescriptor that is read from a resource. |
Modifier and Type | Method and Description |
---|---|
protected SpEntityDescriptorBuilder |
_builder()
Returns the internal builder of the correct type.
|
protected AbstractSAMLObjectBuilder<EntityDescriptor> |
builder()
Returns the builder.
|
void |
setAssertionConsumerService(AssertionConsumerService assertionConsumerService)
Adds one
md:AssertionConsumerService element to the SPSSODescriptor . |
void |
setAssertionConsumerServices(List<AssertionConsumerService> assertionConsumerServices)
Adds
md:AssertionConsumerService elements to the SPSSODescriptor . |
void |
setAttributeConsumingService(AttributeConsumingService attributeConsumingService)
Adds one
md:AttributeConsumingService element to the SPSSODescriptor . |
void |
setAttributeConsumingServices(List<AttributeConsumingService> attributeConsumingServices)
Adds
md:AttributeConsumingService elements to the SPSSODescriptor . |
void |
setAuthnRequestsSigned(Boolean b)
Assigns the
AuthnRequestsSigned attribute of the md:SPSSODescriptor element. |
void |
setDiscoveryResponse(String location)
Adds one discovery response location.
|
void |
setDiscoveryResponses(List<String> locations)
Adds discovery response locations in the given order (first string will be assigned index 1 and so on).
|
void |
setWantAssertionsSigned(Boolean b)
Assigns the
WantAssertionsSigned attribute of the md:SPSSODescriptor element. |
getObjectType, setCacheDuration, setContactPersons, setEntityAttributesExtension, setEntityCategories, setEntityID, setID, setKeyDescriptors, setNameIDFormats, setOrganization, setSingleLogoutServices, setUiInfoExtension, setValidUntil, setValidUntil
createInstance, localizedStringListToVarArgs, stringListToVarArgs, toVarArgs
public SpEntityDescriptorFactoryBean()
EntityDescriptor
object is
created from data assigned using set methods.public SpEntityDescriptorFactoryBean(org.springframework.core.io.Resource resource) throws XMLParserException, UnmarshallingException, IOException
EntityDescriptor
that is read from a resource. Users of
the bean may now change, add or delete (by using null
values), the elements and attributes of the template
object using the setter methods.resource
- the template resourceIOException
- if the resource can not be readUnmarshallingException
- for unmarshalling errorsXMLParserException
- for XML parsing errorspublic SpEntityDescriptorFactoryBean(EntityDescriptor template) throws UnmarshallingException, MarshallingException
EntityDescriptor
. Users of the bean may now change, add
or delete (by using null
values), the elements and attributes of the template object using the setter
methods.template
- the templateUnmarshallingException
- for unmarshalling errorsMarshallingException
- for marshalling errorspublic void setAuthnRequestsSigned(Boolean b)
AuthnRequestsSigned
attribute of the md:SPSSODescriptor
element.b
- boolean (if null
, the attribute is not set)SpEntityDescriptorBuilder.authnRequestsSigned(Boolean)
public void setWantAssertionsSigned(Boolean b)
WantAssertionsSigned
attribute of the md:SPSSODescriptor
element.b
- whether assertions should be signedSpEntityDescriptorBuilder.wantAssertionsSigned(Boolean)
public void setDiscoveryResponse(String location)
location
- URL for discovery responsesSpEntityDescriptorBuilder.discoveryResponses(String...)
public void setDiscoveryResponses(List<String> locations)
locations
- URLs for discovery responsesSpEntityDescriptorBuilder.discoveryResponses(List)
public void setAssertionConsumerServices(List<AssertionConsumerService> assertionConsumerServices)
md:AssertionConsumerService
elements to the SPSSODescriptor
.assertionConsumerServices
- assertion consumer service objects (cloned before assignment)SpEntityDescriptorBuilder.assertionConsumerServices(List)
public void setAssertionConsumerService(AssertionConsumerService assertionConsumerService)
md:AssertionConsumerService
element to the SPSSODescriptor
.assertionConsumerService
- assertion consumer service object (cloned before assignment)SpEntityDescriptorBuilder.assertionConsumerServices(AssertionConsumerService...)
public void setAttributeConsumingServices(List<AttributeConsumingService> attributeConsumingServices)
md:AttributeConsumingService
elements to the SPSSODescriptor
.attributeConsumingServices
- attribute consumer service objects (cloned before assignment)SpEntityDescriptorBuilder.attributeConsumingServices(List)
public void setAttributeConsumingService(AttributeConsumingService attributeConsumingService)
md:AttributeConsumingService
element to the SPSSODescriptor
.attributeConsumingService
- attribute consumer service object (cloned before assignment)SpEntityDescriptorBuilder.attributeConsumingServices(AttributeConsumingService...)
protected SpEntityDescriptorBuilder _builder()
_builder
in class AbstractEntityDescriptorFactoryBean<SpEntityDescriptorBuilder>
protected AbstractSAMLObjectBuilder<EntityDescriptor> builder()
builder
in class AbstractSAMLObjectBuilderFactoryBean<EntityDescriptor>
Copyright © 2018 Litsec AB. All rights reserved.