Class MetadataSettings.UIInfoSettings.LogoSettings
java.lang.Object
se.swedenconnect.spring.saml.idp.settings.AbstractSettings
se.swedenconnect.spring.saml.idp.settings.MetadataSettings.UIInfoSettings.LogoSettings
- All Implemented Interfaces:
Serializable
- Enclosing class:
MetadataSettings.UIInfoSettings
Configuration settings for
UIInfo.Logo elements.- Author:
- Martin Lindström
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder forMetadataSettings.UIInfoSettings.LogoSettings.Nested classes/interfaces inherited from class se.swedenconnect.spring.saml.idp.settings.AbstractSettings
AbstractSettings.AbstractBuilder<T extends AbstractSettings,B extends AbstractSettings.AbstractBuilder<T, B>> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Constructs a newMetadataSettings.UIInfoSettings.LogoSettings.Builderwith no settings.Gets the height of the logo in pixels.Gets the logo language tag.getPath()Gets the logotype path.getUrl()Gets the logotype URL.getWidth()Gets the width of the logo in pixels.withSettings(Map<String, Object> settings) Constructs a newMetadataSettings.UIInfoSettings.LogoSettings.Builderwith the provided settings.Methods inherited from class se.swedenconnect.spring.saml.idp.settings.AbstractSettings
equals, getSetting, getSettings, hashCode, toString
-
Field Details
-
URL
The logotype URL. Mutually exclusive with Path. AString.- See Also:
-
PATH
The logotype path. Mutually exclusive with URL. AString.- See Also:
-
HEIGHT
The height of the logo in pixels. AnInteger.- See Also:
-
WIDTH
The width of the logo in pixels. AnInteger.- See Also:
-
LANGUAGE_TAG
The logo language tag. AString.- See Also:
-
-
Constructor Details
-
LogoSettings
Constructor.- Parameters:
settings- the settings
-
-
Method Details
-
getUrl
Gets the logotype URL. Mutually exclusive with Path.- Returns:
- the URL
-
getPath
Gets the logotype path. Mutually exclusive with URL.- Returns:
- the path
-
getHeight
Gets the height of the logo in pixels.- Returns:
- the logo height
-
getWidth
Gets the width of the logo in pixels.- Returns:
- the logo width
-
getLanguageTag
Gets the logo language tag.- Returns:
- the logo language tag
-
builder
Constructs a newMetadataSettings.UIInfoSettings.LogoSettings.Builderwith no settings.- Returns:
- the
MetadataSettings.UIInfoSettings.LogoSettings.Builder
-
withSettings
public static MetadataSettings.UIInfoSettings.LogoSettings.Builder withSettings(Map<String, Object> settings) Constructs a newMetadataSettings.UIInfoSettings.LogoSettings.Builderwith the provided settings.- Parameters:
settings- the settings to initialize the builder- Returns:
- the builder
-