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 Details

    • ExtensionsBuilder

      public ExtensionsBuilder()
      Default constructor.
  • Method Details

    • builder

      public static ExtensionsBuilder builder()
      Creates a builder instance.
      Returns:
      a builder instance
    • extensions

      public ExtensionsBuilder extensions(List<org.opensaml.core.xml.XMLObject> extensions)
      Adds the extensions (overwrites any previous extensions).
      Parameters:
      extensions - the extension objects
      Returns:
      the builder
    • extensions

      public ExtensionsBuilder extensions(org.opensaml.core.xml.XMLObject... extensions)
      Parameters:
      extensions - the extension objects
      Returns:
      the builder
    • extension

      public ExtensionsBuilder extension(org.opensaml.core.xml.XMLObject extension)
      Adds an extension to this Extensions object.
      Parameters:
      extension - the extension to add
      Returns:
      the builder
    • getObjectType

      protected Class<org.opensaml.saml.saml2.core.Extensions> getObjectType()
      Returns the object type.
      Specified by:
      getObjectType in class AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.core.Extensions>
      Returns:
      the object type