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 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
Modifier and TypeFieldDescriptionstatic final String
The Identity Provider base URL, i.e., the protocol, domain and context path.static final String
Clock skew adjustment (in both directions) to consider still acceptable messages.static final Duration
The default setting for theCLOCK_SKEW_ADJUSTMENT
setting.static final String
The Identity Provider entityID.static final String
The Identity Provider base URL for Holder-of-key support, i.e., the protocol, domain and context path.static final String
The Identity Provider Assertion settings.static final String
The Identity Provider credentials.static final String
The Identity Provider endpoints.static final String
The Identity Provider metadata.static final String
The Identity Provider metadata provider (resolver).static final String
The Identity Provider metadata provider configuration.static final String
Maximum allowed age of received messages.static final Duration
The default setting for theMAX_MESSAGE_AGE
setting.static final String
Whether the IdP requires signed authentication requests.static final String
Prefix for all configuration settings.static final String
Based on a previous authentication, for how long may this authentication be re-used? ADuration
.static final Duration
The default value for theSSO_DURATION_LIMIT
setting.static final String
Does the IdP support theUserMessage
authentication request extension? ABoolean
. -
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.org.opensaml.saml.metadata.resolver.MetadataResolver
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 theUserMessage
authentication request extension?withSettings
(Map<String, Object> settings) Constructs a newIdentityProviderSettings.Builder
with 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_ADJUSTMENT
setting. -
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_AGE
setting. -
MAX_MESSAGE_AGE
Maximum allowed age of received messages. ADuration
. -
SSO_DURATION_LIMIT_DEFAULT
The default value for theSSO_DURATION_LIMIT
setting. -
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 theUserMessage
authentication 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 theMetadataResolver
is created "manually". See alsoIDP_METADATA_PROVIDER_CONFIGURATION
for 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_PROVIDER
the 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
null
if 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 theUserMessage
authentication 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
public org.opensaml.saml.metadata.resolver.MetadataResolver 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.Builder
with the provided settings.- Parameters:
settings
- the settings to initialize the builder- Returns:
- the builder
-