Class DiscoveryResponseBuilder

java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<org.opensaml.saml.ext.idpdisco.DiscoveryResponse>
se.swedenconnect.opensaml.saml2.metadata.build.DiscoveryResponseBuilder
All Implemented Interfaces:
SAMLObjectBuilder<org.opensaml.saml.ext.idpdisco.DiscoveryResponse>

public class DiscoveryResponseBuilder extends AbstractSAMLObjectBuilder<org.opensaml.saml.ext.idpdisco.DiscoveryResponse>
  • Constructor Details

    • DiscoveryResponseBuilder

      public DiscoveryResponseBuilder()
      Default constructor.
    • DiscoveryResponseBuilder

      public DiscoveryResponseBuilder(String location, Integer index)
      Constructor setting the location and the index.
      Parameters:
      location - the location
      index - the index
  • Method Details

    • builder

      public static DiscoveryResponseBuilder builder()
      Creates a builder.
      Returns:
      a builder
    • builder

      public static DiscoveryResponseBuilder builder(String location, Integer index)
      Creates a builder.
      Parameters:
      location - the location
      index - the index
      Returns:
      a builder
    • location

      public DiscoveryResponseBuilder location(String location)
      Adds discovery response location.
      Parameters:
      location - URL for discovery responses
      Returns:
      the builder
    • index

      public DiscoveryResponseBuilder index(Integer index)
      Adds discovery index.
      Parameters:
      index - the index
      Returns:
      the builder
    • getObjectType

      protected Class<org.opensaml.saml.ext.idpdisco.DiscoveryResponse> getObjectType()
      Returns the object type.
      Specified by:
      getObjectType in class AbstractSAMLObjectBuilder<org.opensaml.saml.ext.idpdisco.DiscoveryResponse>
      Returns:
      the object type