java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<org.opensaml.saml.ext.saml2mdui.Logo>
se.swedenconnect.opensaml.saml2.metadata.build.LogoBuilder
All Implemented Interfaces:
SAMLObjectBuilder<org.opensaml.saml.ext.saml2mdui.Logo>

public class LogoBuilder extends AbstractSAMLObjectBuilder<org.opensaml.saml.ext.saml2mdui.Logo>
A builder for mdui:Logo elements.
Author:
Martin Lindström (martin@idsec.se)
  • Constructor Details

    • LogoBuilder

      public LogoBuilder()
  • Method Details

    • builder

      public static LogoBuilder builder()
      Creates a new LogoBuilder instance.
      Returns:
      a LogoBuilder instance
    • logo

      public static org.opensaml.saml.ext.saml2mdui.Logo logo(String url, Integer height, Integer width)
      Utility method that builds a mdui:Logo object.
      Parameters:
      url - the Logo URL
      height - the height
      width - the width
      Returns:
      a Logo instance
    • logo

      public static org.opensaml.saml.ext.saml2mdui.Logo logo(String url, String language, Integer height, Integer width)
      Utility method that builds a mdui:Logo object.
      Parameters:
      url - the Logo URL
      language - the language
      height - the height
      width - the width
      Returns:
      a Logo instance
    • getObjectType

      protected Class<org.opensaml.saml.ext.saml2mdui.Logo> getObjectType()
      Returns the object type.
      Specified by:
      getObjectType in class AbstractSAMLObjectBuilder<org.opensaml.saml.ext.saml2mdui.Logo>
      Returns:
      the object type
    • url

      public LogoBuilder url(String url)
      Assigns the URL of the Logo.
      Parameters:
      url - the URL
      Returns:
      the builder
    • language

      public LogoBuilder language(String language)
      Assigns the language tag of the Logo.
      Parameters:
      language - the language tag
      Returns:
      the builder
    • height

      public LogoBuilder height(Integer height)
      Assigns the height of the Logo.
      Parameters:
      height - the height (in pixels)
      Returns:
      the builder
    • width

      public LogoBuilder width(Integer width)
      Assigns the width of the Logo.
      Parameters:
      width - the width (in pixels)
      Returns:
      the builder