Class LogoBuilder
- java.lang.Object
-
- se.litsec.opensaml.core.AbstractSAMLObjectBuilder<Logo>
-
- se.litsec.opensaml.saml2.metadata.build.LogoBuilder
-
- All Implemented Interfaces:
SAMLObjectBuilder<Logo>
public class LogoBuilder extends AbstractSAMLObjectBuilder<Logo>
A builder formdui:Logoelements.- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
-
-
Constructor Summary
Constructors Constructor Description LogoBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LogoBuilderbuilder()Creates a newLogoBuilderinstance.protected Class<Logo>getObjectType()Returns the object type.LogoBuilderheight(Integer height)Assigns the height of theLogo.LogoBuilderlanguage(String language)Assigns the language tag of theLogo.static Logologo(String url, Integer height, Integer width)Utility method that builds amdui:Logoobject.static Logologo(String url, String language, Integer height, Integer width)Utility method that builds amdui:Logoobject.LogoBuilderurl(String url)Assigns the URL of theLogo.LogoBuilderwidth(Integer width)Assigns the width of theLogo.-
Methods inherited from class se.litsec.opensaml.core.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
-
-
-
Method Detail
-
builder
public static LogoBuilder builder()
Creates a newLogoBuilderinstance.- Returns:
- a
LogoBuilderinstance
-
logo
public static Logo logo(String url, Integer height, Integer width)
Utility method that builds amdui:Logoobject.- Parameters:
url- the Logo URLheight- the heightwidth- the width- Returns:
- a
Logoinstance
-
logo
public static Logo logo(String url, String language, Integer height, Integer width)
Utility method that builds amdui:Logoobject.- Parameters:
url- the Logo URLlanguage- the languageheight- the heightwidth- the width- Returns:
- a
Logoinstance
-
getObjectType
protected Class<Logo> getObjectType()
Returns the object type.- Specified by:
getObjectTypein classAbstractSAMLObjectBuilder<Logo>- Returns:
- the object type
-
url
public LogoBuilder url(String url)
Assigns the URL of theLogo.- Parameters:
url- the URL- Returns:
- the builder
-
language
public LogoBuilder language(String language)
Assigns the language tag of theLogo.- Parameters:
language- the language tag- Returns:
- the builder
-
height
public LogoBuilder height(Integer height)
Assigns the height of theLogo.- Parameters:
height- the height (in pixels)- Returns:
- the builder
-
width
public LogoBuilder width(Integer width)
Assigns the width of theLogo.- Parameters:
width- the width (in pixels)- Returns:
- the builder
-
-