Class AbstractSSODescriptorBuilder<T extends SSODescriptor,B extends AbstractSAMLObjectBuilder<T>>
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<T>
se.swedenconnect.opensaml.saml2.metadata.build.AbstractSSODescriptorBuilder<T,B>
- All Implemented Interfaces:
SAMLObjectBuilder<T>
- Direct Known Subclasses:
IDPSSODescriptorBuilder,SPSSODescriptorBuilder
public abstract class AbstractSSODescriptorBuilder<T extends SSODescriptor,B extends AbstractSAMLObjectBuilder<T>>
extends AbstractSAMLObjectBuilder<T>
Abstract base class for building a
SSODescriptor.- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.AbstractSSODescriptorBuilder(T template, boolean clone) Constructor setting up the builder with a template object. -
Method Summary
Modifier and TypeMethodDescriptionextensions(Extensions extensions) Assigns metadata extensions.Based on the contents of this object, anExtensionsBuilderis returned.protected abstract BgetThis()In order for us to be able to make chaining calls we need to return the concrete type of the builder.keyDescriptors(List<KeyDescriptor> keyDescriptors) Adds the key descriptor elements.keyDescriptors(KeyDescriptor... keyDescriptors) SeekeyDescriptors(List).nameIDFormats(String... nameIDFormats) SeenameIDFormats(List).nameIDFormats(List<String> nameIDFormats) Assigns themd:NameIDFormatelements.singleLogoutServices(List<SingleLogoutService> singleLogoutServices) Addsmd:SingleLogoutServiceelements to theSSODescriptor.singleLogoutServices(SingleLogoutService... singleLogoutServices) Methods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
build, getDefaultElementName, getObjectType, object
-
Constructor Details
-
AbstractSSODescriptorBuilder
public AbstractSSODescriptorBuilder()Default constructor. -
AbstractSSODescriptorBuilder
Constructor setting up the builder with a template object. Users of the instance may now change, add or delete, the elements and attributes of the template object using the assignment methods of the builder.The
cloneparameter tells whether the object should be cloned or not. If set totrue, any modifications will have no effect on the passed object.- Parameters:
template- the template objectclone- whether the template object should be cloned
-
-
Method Details
-
keyDescriptors
Adds the key descriptor elements.- Parameters:
keyDescriptors- the key descriptors- Returns:
- the builder
-
keyDescriptors
SeekeyDescriptors(List).- Parameters:
keyDescriptors- the key descriptors- Returns:
- the builder
-
extensions
Assigns metadata extensions.- Parameters:
extensions- the metadata extensions.- Returns:
- the builder
-
getExtensionsBuilder
Based on the contents of this object, anExtensionsBuilderis returned. If the object holds anExtensionsobject, this is fed to the builder (but not cloned).- Returns:
- an
ExtensionsBuilder
-
nameIDFormats
Assigns themd:NameIDFormatelements.- Parameters:
nameIDFormats- the nameID format strings- Returns:
- the builder
-
nameIDFormats
SeenameIDFormats(List).- Parameters:
nameIDFormats- the nameID format strings- Returns:
- the builder
-
singleLogoutServices
Addsmd:SingleLogoutServiceelements to theSSODescriptor.- Parameters:
singleLogoutServices- single logout service objects (cloned before assignment)- Returns:
- the builder
-
singleLogoutServices
- Parameters:
singleLogoutServices- single logout service objects (cloned before assignment)- Returns:
- the builder
-
getThis
In order for us to be able to make chaining calls we need to return the concrete type of the builder.- Returns:
- the concrete type of the builder
-