Class ScopingBuilder

java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.core.Scoping>
se.swedenconnect.opensaml.saml2.core.build.ScopingBuilder
All Implemented Interfaces:
SAMLObjectBuilder<org.opensaml.saml.saml2.core.Scoping>

public class ScopingBuilder extends AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.core.Scoping>
Builder class for Scoping elements.
Author:
Martin Lindström (martin@idsec.se)
  • Constructor Details

    • ScopingBuilder

      public ScopingBuilder()
  • Method Details

    • builder

      public static ScopingBuilder builder()
      Utility method that creates a builder.
      Returns:
      a builder
    • proxyCount

      public ScopingBuilder proxyCount(Integer count)
      Assigns the ProxyCount attribute.
      Parameters:
      count - the proxy count
      Returns:
      the builder
    • idpList

      public ScopingBuilder idpList(String completeUri, List<org.opensaml.saml.saml2.core.IDPEntry> idpEntries)
      Adds the IDPList element.
      Parameters:
      completeUri - the GetComplete element of the IDPList element (may be null)
      idpEntries - the IDPEntry elements of the IDPList element
      Returns:
      the builder
    • idpList

      public ScopingBuilder idpList(String completeUri, org.opensaml.saml.saml2.core.IDPEntry... idpEntries)
      Parameters:
      completeUri - the GetComplete element of the IDPList element (may be null)
      idpEntries - the IDPEntry elements of the IDPList element
      Returns:
      the builder
    • idpEntry

      public static org.opensaml.saml.saml2.core.IDPEntry idpEntry(String providerID, String name, String loc)
      Creates an IDPEntry element.
      Parameters:
      providerID - the ProviderID attribute
      name - the Name attribute
      loc - the Loc attribute
      Returns:
      an IDPEntry element
    • requesterIDs

      public ScopingBuilder requesterIDs(List<String> ids)
      Assigns RequesterID elements.
      Parameters:
      ids - the RequesterID elements to add
      Returns:
      the builder
    • requesterIDs

      public ScopingBuilder requesterIDs(String... ids)
      Parameters:
      ids - the RequesterID elements to add
      Returns:
      the builder
    • getObjectType

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