Class ExtensionsBuilder
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.core.Extensions>
se.swedenconnect.opensaml.saml2.core.build.ExtensionsBuilder
- All Implemented Interfaces:
SAMLObjectBuilder<org.opensaml.saml.saml2.core.Extensions>
public class ExtensionsBuilder
extends AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.core.Extensions>
Builder for
Extensions
objects.- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionsBuilder
builder()
Creates a builder instance.extension
(org.opensaml.core.xml.XMLObject extension) Adds an extension 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.core.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.
-
-
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 an extension to thisExtensions
object.- Parameters:
extension
- the extension to add- Returns:
- the builder
-
getObjectType
Returns the object type.- Specified by:
getObjectType
in classAbstractSAMLObjectBuilder<org.opensaml.saml.saml2.core.Extensions>
- Returns:
- the object type
-