Class IdentityProviderSettings
java.lang.Object
se.swedenconnect.spring.saml.idp.settings.AbstractSettings
se.swedenconnect.spring.saml.idp.settings.IdentityProviderSettings
- All Implemented Interfaces:
Serializable
Identity Provider configuration settings.
- Author:
- Martin Lindström
- See Also:
-
Nested Class Summary
Nested ClassesNested 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
FieldsModifier and TypeFieldDescriptionstatic final StringThe Identity Provider base URL, i.e., the protocol, domain and context path.static final StringClock skew adjustment (in both directions) to consider still acceptable messages.static final DurationThe default setting for theCLOCK_SKEW_ADJUSTMENTsetting.static final StringThe Identity Provider entityID.static final StringThe Identity Provider base URL for Holder-of-key support, i.e., the protocol, domain and context path.static final StringThe Identity Provider Assertion settings.static final StringThe Identity Provider credentials.static final StringThe Identity Provider endpoints.static final StringThe Identity Provider metadata.static final StringThe Identity Provider metadata provider (resolver).static final StringThe Identity Provider metadata provider configuration.static final StringMaximum allowed age of received messages.static final DurationThe default setting for theMAX_MESSAGE_AGEsetting.static final StringWhether the IdP requires signed authentication requests.static final StringPrefix for all configuration settings.static final StringBased on a previous authentication, for how long may this authentication be re-used?static final DurationThe default value for theSSO_DURATION_LIMITsetting.static final StringDoes the IdP support theUserMessageauthentication request extension? -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Constructs a newIdentityProviderSettings.Builder.Gets the Identity Provider Assertion settings.Gets the Identity Provider base URL, i.e., the protocol, domain and context path.Gets the clock skew adjustment (in both directions) to consider still acceptable messages.Gets the IdP credentials.Gets the IdP endpoints settings.Gets the SAML entityID of the Identity Provider.Gets the Identity Provider base URL for Holder-of-key support, i.e., the protocol, domain and context path.Gets the maximum allowed age of received messages.Gets the IdP metadata settings.Gets the Identity Provider metadata provider (resolver).Gets the IdP metadata provider configuration settings.Tells whether the IdP requires signed authentication requests.Based on a previous authentication, for how long may this authentication be re-used?Does the IdP support theUserMessageauthentication request extension?withSettings(Map<String, Object> settings) Constructs a newIdentityProviderSettings.Builderwith the provided settings.Methods inherited from class se.swedenconnect.spring.saml.idp.settings.AbstractSettings
equals, getSetting, getSettings, hashCode, toString
-
Field Details
-
SETTINGS_PREFIX
Prefix for all configuration settings.- See Also:
-
ENTITY_ID
The Identity Provider entityID. -
BASE_URL
The Identity Provider base URL, i.e., the protocol, domain and context path. Must not end with an '/'. -
HOK_BASE_URL
The Identity Provider base URL for Holder-of-key support, i.e., the protocol, domain and context path. Must not end with an '/'.This setting is optional, and if HoK is being used and that requires a different IdP domain or context path this setting represents this base URL.
-
REQUIRES_SIGNED_REQUESTS
Whether the IdP requires signed authentication requests. ABoolean. -
CLOCK_SKEW_ADJUSTMENT_DEFAULT
The default setting for theCLOCK_SKEW_ADJUSTMENTsetting. -
CLOCK_SKEW_ADJUSTMENT
Clock skew adjustment (in both directions) to consider still acceptable messages. ADuration. -
MAX_MESSAGE_AGE_DEFAULT
The default setting for theMAX_MESSAGE_AGEsetting. -
MAX_MESSAGE_AGE
Maximum allowed age of received messages. ADuration. -
SSO_DURATION_LIMIT_DEFAULT
The default value for theSSO_DURATION_LIMITsetting. -
SSO_DURATION_LIMIT
Based on a previous authentication, for how long may this authentication be re-used? ADuration. -
SUPPORTS_USER_MESSAGE
Does the IdP support theUserMessageauthentication request extension? ABoolean. -
IDP_CREDENTIALS
The Identity Provider credentials. -
IDP_ENDPOINTS
The Identity Provider endpoints. -
IDP_ASSERTION_SETTINGS
The Identity Provider Assertion settings. -
IDP_METADATA
The Identity Provider metadata. -
IDP_METADATA_PROVIDER
The Identity Provider metadata provider (resolver). May be assigned if theMetadataResolveris created "manually". See alsoIDP_METADATA_PROVIDER_CONFIGURATIONfor an alternate way of configuring the metadata provider.- See Also:
-
IDP_METADATA_PROVIDER_CONFIGURATION
The Identity Provider metadata provider configuration. An array ofMetadataProviderSettings. By using this option instead ofIDP_METADATA_PROVIDERthe application provides configuration for setting up aMetadataResolver, but the actual creation is done by the configurers.
-
-
Method Details
-
getEntityId
Gets the SAML entityID of the Identity Provider.- Returns:
- Identity Provider entityID
-
getBaseUrl
Gets the Identity Provider base URL, i.e., the protocol, domain and context path. Must not end with an '/'.- Returns:
- the IdP base URL
-
getHokBaseUrl
Gets the Identity Provider base URL for Holder-of-key support, i.e., the protocol, domain and context path. Must not end with an '/'.This setting is optional, and if HoK is being used and that requires a different IdP domain or context path this setting represents this base URL.
- Returns:
- the HoK base URL, or
nullif not assigned
-
getRequiresSignedRequests
Tells whether the IdP requires signed authentication requests.- Returns:
- whether the IdP requires signed authentication requests
-
getClockSkewAdjustment
Gets the clock skew adjustment (in both directions) to consider still acceptable messages.- Returns:
- a
Duration
-
getMaxMessageAge
Gets the maximum allowed age of received messages.- Returns:
- a
Duration
-
getSsoDurationLimit
Based on a previous authentication, for how long may this authentication be re-used?- Returns:
- a
Duration
-
getSupportsUserMessage
Does the IdP support theUserMessageauthentication request extension?- Returns:
- a
Boolean
-
getCredentials
Gets the IdP credentials.- Returns:
- the IdP credentials
-
getEndpoints
Gets the IdP endpoints settings.- Returns:
- the IdP endpoints settings
-
getAssertionSettings
Gets the Identity Provider Assertion settings.- Returns:
- the Identity Provider Assertion settings
-
getMetadata
Gets the IdP metadata settings.- Returns:
- the IdP metadata settings
-
getMetadataProvider
Gets the Identity Provider metadata provider (resolver).A metadata provider may also be set up using
IDP_METADATA_PROVIDER_CONFIGURATION.- Returns:
- the metadata resolver to use or
null - See Also:
-
getMetadataProviderConfiguration
Gets the IdP metadata provider configuration settings.A metadata provider may also be set up using
IDP_METADATA_PROVIDER.- Returns:
- an array of metadata provider configuration settings
- See Also:
-
builder
Constructs a newIdentityProviderSettings.Builder.- Returns:
- the builder
-
withSettings
Constructs a newIdentityProviderSettings.Builderwith the provided settings.- Parameters:
settings- the settings to initialize the builder- Returns:
- the builder
-