Class LogoBuilder
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>
A builder for
mdui:Logo
elements.- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LogoBuilder
builder()
Creates a newLogoBuilder
instance.protected Class
<org.opensaml.saml.ext.saml2mdui.Logo> Returns the object type.Assigns the height of theLogo
.Assigns the language tag of theLogo
.static org.opensaml.saml.ext.saml2mdui.Logo
Utility method that builds amdui:Logo
object.static org.opensaml.saml.ext.saml2mdui.Logo
Utility method that builds amdui:Logo
object.Assigns the URL of theLogo
.Assigns the width of theLogo
.Methods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
Constructor Details
-
LogoBuilder
public LogoBuilder()
-
-
Method Details
-
builder
Creates a newLogoBuilder
instance.- Returns:
- a LogoBuilder instance
-
logo
Utility method that builds amdui:Logo
object.- Parameters:
url
- the Logo URLheight
- the heightwidth
- 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 amdui:Logo
object.- Parameters:
url
- the Logo URLlanguage
- the languageheight
- the heightwidth
- the width- Returns:
- a Logo instance
-
getObjectType
Returns the object type.- Specified by:
getObjectType
in classAbstractSAMLObjectBuilder<org.opensaml.saml.ext.saml2mdui.Logo>
- Returns:
- the object type
-
url
Assigns the URL of theLogo
.- Parameters:
url
- the URL- Returns:
- the builder
-
language
Assigns the language tag of theLogo
.- Parameters:
language
- the language tag- Returns:
- the builder
-
height
Assigns the height of theLogo
.- Parameters:
height
- the height (in pixels)- Returns:
- the builder
-
width
Assigns the width of theLogo
.- Parameters:
width
- the width (in pixels)- Returns:
- the builder
-