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 void
Is invoked byAbstractSettings.AbstractBuilder.build()
to apply default values to those settings that are mandatory and has not been assigned.protected AssertionSettings
Is invoked byAbstractSettings.AbstractBuilder.build()
and builds the settings object.encryptAssertions
(Boolean encryptAssertions) Assigns whether the Identity Provider encrypts assertions.notBeforeDuration
(Duration notBefore) Assigns theDuration
that tells the time restrictions the IdP puts on an Assertion concerning "not before".notOnOrAfterDuration
(Duration notOnOrAfter) Assigns theDuration
that 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 theDuration
that tells the time restrictions the IdP puts on an Assertion concerning "not on or after".- Parameters:
notOnOrAfter
- aDuration
- Returns:
- the builder
-
notBeforeDuration
Assigns theDuration
that 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
-true
if assertions should be encrypted andfalse
otherwise- 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:
applyDefaultSettings
in classAbstractSettings.AbstractBuilder<AssertionSettings,
AssertionSettings.Builder>
-
buildObject
Is invoked byAbstractSettings.AbstractBuilder.build()
and builds the settings object.- Specified by:
buildObject
in classAbstractSettings.AbstractBuilder<AssertionSettings,
AssertionSettings.Builder> - Returns:
- the settings object
-