Class AssertionSettings.Builder
java.lang.Object
se.swedenconnect.spring.saml.idp.settings.AbstractSettings.AbstractBuilder<AssertionSettings,AssertionSettings.Builder>
se.swedenconnect.spring.saml.idp.settings.AssertionSettings.Builder
- Enclosing class:
AssertionSettings
public static final class AssertionSettings.Builder
extends AbstractSettings.AbstractBuilder<AssertionSettings,AssertionSettings.Builder>
A builder for
AssertionSettings.-
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 AssertionSettingsIs invoked byAbstractSettings.AbstractBuilder.build()and builds the settings object.encryptAssertions(Boolean encryptAssertions) Assigns whether the Identity Provider encrypts assertions.notBeforeDuration(Duration notBefore) Assigns theDurationthat tells the time restrictions the IdP puts on an Assertion concerning "not before".notOnOrAfterDuration(Duration notOnOrAfter) Assigns theDurationthat tells the time restrictions the IdP puts on an Assertion concerning "not on or after".Methods inherited from class se.swedenconnect.spring.saml.idp.settings.AbstractSettings.AbstractBuilder
build, getSettings, getThis, setting, settings
-
Method Details
-
notOnOrAfterDuration
Assigns theDurationthat tells the time restrictions the IdP puts on an Assertion concerning "not on or after".- Parameters:
notOnOrAfter- aDuration- Returns:
- the builder
-
notBeforeDuration
Assigns theDurationthat tells the time restrictions the IdP puts on an Assertion concerning "not before".- Parameters:
notBefore- aDuration- Returns:
- the builder
-
encryptAssertions
Assigns whether the Identity Provider encrypts assertions.- Parameters:
encryptAssertions-trueif assertions should be encrypted andfalseotherwise- 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.- Specified by:
applyDefaultSettingsin classAbstractSettings.AbstractBuilder<AssertionSettings,AssertionSettings.Builder>
-
buildObject
Is invoked byAbstractSettings.AbstractBuilder.build()and builds the settings object.- Specified by:
buildObjectin classAbstractSettings.AbstractBuilder<AssertionSettings,AssertionSettings.Builder> - Returns:
- the settings object
-