Class MetadataSettings.OrganizationSettings.Builder
java.lang.Object
se.swedenconnect.spring.saml.idp.settings.AbstractSettings.AbstractBuilder<MetadataSettings.OrganizationSettings,MetadataSettings.OrganizationSettings.Builder>
se.swedenconnect.spring.saml.idp.settings.MetadataSettings.OrganizationSettings.Builder
- Enclosing class:
MetadataSettings.OrganizationSettings
public static final class MetadataSettings.OrganizationSettings.Builder
extends AbstractSettings.AbstractBuilder<MetadataSettings.OrganizationSettings,MetadataSettings.OrganizationSettings.Builder>
A builder for
MetadataSettings.OrganizationSettings.-
Method Summary
Modifier and TypeMethodDescriptionprotected voidIs invoked byAbstractSettings.AbstractBuilder.build()to apply default values to those settings that are mandatory and has not been assigned.protected MetadataSettings.OrganizationSettingsIs invoked byAbstractSettings.AbstractBuilder.build()and builds the settings object.displayNames(Map<String, String> displayName) Assigns the Organization display name as a map of strings where the key is the language tag and the value is the display name for that language.Assigns the Organization names as a map of strings where the key is the language tag and the value is the description for that language.Assigns the Organization URL:s as a map where the key is the language tag and the URL the value.Methods inherited from class se.swedenconnect.spring.saml.idp.settings.AbstractSettings.AbstractBuilder
build, getSettings, getThis, setting, settings
-
Method Details
-
names
Assigns the Organization names as a map of strings where the key is the language tag and the value is the description for that language.- Parameters:
names- a map of names- Returns:
- the builder
-
displayNames
Assigns the Organization display name as a map of strings where the key is the language tag and the value is the display name for that language.- Parameters:
displayName- the display name- Returns:
- the builder
-
urls
Assigns the Organization URL:s as a map where the key is the language tag and the URL the value.- Parameters:
urls- a map of Organization URLs- Returns:
- the builder
-
applyDefaultSettings
protected void applyDefaultSettings()Is invoked byAbstractSettings.AbstractBuilder.build()to apply default values to those settings that are mandatory and has not been assigned. -
buildObject
Is invoked byAbstractSettings.AbstractBuilder.build()and builds the settings object.- Specified by:
buildObjectin classAbstractSettings.AbstractBuilder<MetadataSettings.OrganizationSettings,MetadataSettings.OrganizationSettings.Builder> - Returns:
- the settings object
-