Class ExtensionsBuilder
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.metadata.Extensions>
se.swedenconnect.opensaml.saml2.metadata.build.ExtensionsBuilder
- All Implemented Interfaces:
SAMLObjectBuilder<org.opensaml.saml.saml2.metadata.Extensions>
public class ExtensionsBuilder
extends AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.metadata.Extensions>
Builder for metadata
Extensions
objects.- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
ConstructorDescriptionDefault constructor.ExtensionsBuilder
(org.opensaml.saml.saml2.metadata.Extensions template, boolean clone) Constructor setting up the builder with a template object. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionsBuilder
builder()
Creates a builder instance.extension
(org.opensaml.core.xml.XMLObject... extension) Adds one, or more, extensions to thisExtensions
object.extensions
(List<org.opensaml.core.xml.XMLObject> extensions) Adds the extensions (overwrites any previous extensions).extensions
(org.opensaml.core.xml.XMLObject... extensions) Seeextensions(List)
.protected Class
<org.opensaml.saml.saml2.metadata.Extensions> Returns the object type.Methods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
Constructor Details
-
ExtensionsBuilder
public ExtensionsBuilder()Default constructor. -
ExtensionsBuilder
public ExtensionsBuilder(org.opensaml.saml.saml2.metadata.Extensions template, boolean clone) 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
clone
parameter 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
-
builder
Creates a builder instance.- Returns:
- a builder instance
-
extensions
Adds the extensions (overwrites any previous extensions).- Parameters:
extensions
- the extension objects- Returns:
- the builder
-
extensions
Seeextensions(List)
.- Parameters:
extensions
- the extension objects- Returns:
- the builder
-
extension
Adds one, or more, extensions to thisExtensions
object.- Parameters:
extension
- the extension(s) to add- Returns:
- the builder
-
getObjectType
Returns the object type.- Specified by:
getObjectType
in classAbstractSAMLObjectBuilder<org.opensaml.saml.saml2.metadata.Extensions>
- Returns:
- the object type
-