public class SpEntityDescriptorBuilder extends AbstractEntityDescriptorBuilder<SpEntityDescriptorBuilder>
md:EntityDescription
(metadata) object for a Service Provider.ENTITY_CATEGORY_ATTRIBUTE_NAME, ENTITY_CATEGORY_TEMPLATE
Constructor and Description |
---|
SpEntityDescriptorBuilder()
Constructor setting up the builder with no template.
|
SpEntityDescriptorBuilder(EntityDescriptor template)
Constructor setting up the builder with a template
EntityDescriptor . |
SpEntityDescriptorBuilder(InputStream resource)
Constructor setting up the builder with a template
EntityDescriptor that is read from a resource. |
Modifier and Type | Method and Description |
---|---|
SpEntityDescriptorBuilder |
assertionConsumerServices(AssertionConsumerService... assertionConsumerServices) |
SpEntityDescriptorBuilder |
assertionConsumerServices(List<AssertionConsumerService> assertionConsumerServices)
Adds
md:AssertionConsumerService elements to the SPSSODescriptor . |
SpEntityDescriptorBuilder |
attributeConsumingServices(AttributeConsumingService... attributeConsumingServices) |
SpEntityDescriptorBuilder |
attributeConsumingServices(List<AttributeConsumingService> attributeConsumingServices)
Adds
md:AttributeConsumingService elements to the SPSSODescriptor . |
SpEntityDescriptorBuilder |
authnRequestsSigned(Boolean b)
Assigns the
AuthnRequestsSigned attribute of the md:SPSSODescriptor element. |
SpEntityDescriptorBuilder |
discoveryResponses(List<String> locations)
Adds discovery response locations in the given order (first string will be assigned index 1 and so on).
|
SpEntityDescriptorBuilder |
discoveryResponses(String... locations) |
protected SpEntityDescriptorBuilder |
getThis()
In order for us to be able to make chaining calls we need to return the concrete type of the builder.
|
protected boolean |
matchingSSODescriptorType(EntityDescriptor descriptor)
Checks that the SSO descriptor of the supplied
EntityDescriptor is of the correct type given the factory
bean type. |
protected SSODescriptor |
ssoDescriptor()
Returns the SSO role descriptor of the template entity descriptor.
|
SpEntityDescriptorBuilder |
wantAssertionsSigned(Boolean b)
Assigns the
WantAssertionsSigned attribute of the md:SPSSODescriptor element. |
cacheDuration, contactPersons, contactPersons, entityAttributesExtension, entityAttributesExtension, entityCategories, entityCategories, entityID, getObjectType, id, keyDescriptors, keyDescriptors, nameIDFormats, nameIDFormats, organization, singleLogoutServices, singleLogoutServices, uiInfoExtension, validUntil, validUntil
build, object
public SpEntityDescriptorBuilder()
EntityDescriptor
object is
created from data assigned using the builder.public SpEntityDescriptorBuilder(InputStream resource) throws XMLParserException, UnmarshallingException, IOException
EntityDescriptor
that is read from a resource. Users of
the bean may now change, add or delete, the elements and attributes of the template object using the assignment
methods of the builder.resource
- the template resourceIOException
- if the resource can not be readUnmarshallingException
- for unmarshalling errorsXMLParserException
- for XML parsing errorspublic SpEntityDescriptorBuilder(EntityDescriptor template) throws UnmarshallingException, MarshallingException
EntityDescriptor
. Users of the bean may now change, add
or delete, the elements and attributes of the template object using the assignment methods of the builder.template
- the templateUnmarshallingException
- for unmarshalling errorsMarshallingException
- for marshalling errorsprotected SpEntityDescriptorBuilder getThis()
getThis
in class AbstractEntityDescriptorBuilder<SpEntityDescriptorBuilder>
public SpEntityDescriptorBuilder authnRequestsSigned(Boolean b)
AuthnRequestsSigned
attribute of the md:SPSSODescriptor
element.b
- boolean (if null
, the attribute is not set)public SpEntityDescriptorBuilder wantAssertionsSigned(Boolean b)
WantAssertionsSigned
attribute of the md:SPSSODescriptor
element.b
- whether assertions should be signedpublic SpEntityDescriptorBuilder discoveryResponses(List<String> locations)
locations
- URLs for discovery responsespublic SpEntityDescriptorBuilder discoveryResponses(String... locations)
locations
- URLs for discovery responsesdiscoveryResponses(List)
public SpEntityDescriptorBuilder assertionConsumerServices(List<AssertionConsumerService> assertionConsumerServices)
md:AssertionConsumerService
elements to the SPSSODescriptor
.assertionConsumerServices
- assertion consumer service objects (cloned before assignment)public SpEntityDescriptorBuilder assertionConsumerServices(AssertionConsumerService... assertionConsumerServices)
assertionConsumerServices
- assertion consumer service objects (cloned before assignment)assertionConsumerServices(List)
public SpEntityDescriptorBuilder attributeConsumingServices(List<AttributeConsumingService> attributeConsumingServices)
md:AttributeConsumingService
elements to the SPSSODescriptor
.attributeConsumingServices
- attribute consumer service objects (cloned before assignment)public SpEntityDescriptorBuilder attributeConsumingServices(AttributeConsumingService... attributeConsumingServices)
attributeConsumingServices
- attribute consumer service objects (cloned before assignment)assertionConsumerServices(List)
protected SSODescriptor ssoDescriptor()
ssoDescriptor
in class AbstractEntityDescriptorBuilder<SpEntityDescriptorBuilder>
protected boolean matchingSSODescriptorType(EntityDescriptor descriptor)
EntityDescriptor
is of the correct type given the factory
bean type.
An entity descriptor that does not yet have an SSODescriptor element will also be regarded as a matching type.
matchingSSODescriptorType
in class AbstractEntityDescriptorBuilder<SpEntityDescriptorBuilder>
descriptor
- the descriptor to checktrue
if the type is OK, and false
otherwiseCopyright © 2018 Litsec AB. All rights reserved.