Class MetadataSettings.OrganizationSettings
java.lang.Object
se.swedenconnect.spring.saml.idp.settings.AbstractSettings
se.swedenconnect.spring.saml.idp.settings.MetadataSettings.OrganizationSettings
- All Implemented Interfaces:
Serializable
- Enclosing class:
MetadataSettings
Configuration for Organization metadata element.
- Author:
- Martin Lindström
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A builder forMetadataSettings.OrganizationSettings
.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
-
Constructor Summary
ModifierConstructorDescriptionprotected
OrganizationSettings
(Map<String, Object> settings) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Constructs a newMetadataSettings.OrganizationSettings.Builder
with no settings.Gets the Organization display names as a map of strings where the key is the language tag and the value is the display name for that language.getNames()
Gets the Organization name as a map of strings where the key is the language tag and the value is the description for that language.getUrls()
Gets the Organization URL:s as a map where the key is the language tag and the URL the value.withSettings
(Map<String, Object> settings) Constructs a newMetadataSettings.OrganizationSettings.Builder
with the provided settings.Methods inherited from class se.swedenconnect.spring.saml.idp.settings.AbstractSettings
equals, getSetting, getSettings, hashCode, toString
-
Field Details
-
Constructor Details
-
OrganizationSettings
Constructor.- Parameters:
settings
- the settings
-
-
Method Details
-
getNames
Gets the Organization name as a map of strings where the key is the language tag and the value is the description for that language.- Returns:
- a map of names
-
getDisplayNames
Gets the Organization display names as a map of strings where the key is the language tag and the value is the display name for that language.- Returns:
- a map of display names
-
getUrls
Gets the Organization URL:s as a map where the key is the language tag and the URL the value.- Returns:
- a map of Organization URLs
-
builder
Constructs a newMetadataSettings.OrganizationSettings.Builder
with no settings.- Returns:
- the
MetadataSettings.OrganizationSettings.Builder
-
withSettings
public static MetadataSettings.OrganizationSettings.Builder withSettings(Map<String, Object> settings) Constructs a newMetadataSettings.OrganizationSettings.Builder
with the provided settings.- Parameters:
settings
- the settings to initialize the builder- Returns:
- the builder
-