Class AssertionSettings
java.lang.Object
se.swedenconnect.spring.saml.idp.settings.AbstractSettings
se.swedenconnect.spring.saml.idp.settings.AssertionSettings
- All Implemented Interfaces:
Serializable
Settings that controls how SAML Assertions are issued.
- 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 StringTells whether the Identity Provider encrypts assertions.static final BooleanDefault value for theENCRYPT_ASSERTIONSsetting.static final StringA setting that tells the time restrictions the IdP puts on an Assertion concerning "not before".static final DurationDefault value for theNOT_BEFORE_DURATIONsetting.static final StringA setting that tells the time restrictions the IdP puts on an Assertion concerning "not on or after".static final DurationDefault value for theNOT_ON_OR_AFTER_DURATIONsetting. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAssertionSettings(Map<String, Object> settings) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic AssertionSettings.Builderbuilder()Constructs a newAssertionSettings.Builderwith no settings.Tells whether the Identity Provider encrypts assertions.Gets theDurationthat tells the time restrictions the IdP puts on an Assertion concerning "not before".Gets theDurationthat tells the time restrictions the IdP puts on an Assertion concerning "not on or after".static AssertionSettings.BuilderwithSettings(Map<String, Object> settings) Constructs a newAssertionSettings.Builderwith the provided settings.Methods inherited from class se.swedenconnect.spring.saml.idp.settings.AbstractSettings
equals, getSetting, getSettings, hashCode, toString
-
Field Details
-
NOT_ON_OR_AFTER_DURATION_DEFAULT
Default value for theNOT_ON_OR_AFTER_DURATIONsetting. -
NOT_BEFORE_DURATION_DEFAULT
Default value for theNOT_BEFORE_DURATIONsetting. -
ENCRYPT_ASSERTIONS_DEFAULT
Default value for theENCRYPT_ASSERTIONSsetting. -
ENCRYPT_ASSERTIONS
Tells whether the Identity Provider encrypts assertions. ABoolean.- See Also:
-
NOT_ON_OR_AFTER_DURATION
A setting that tells the time restrictions the IdP puts on an Assertion concerning "not on or after". ADuration.- See Also:
-
NOT_BEFORE_DURATION
A setting that tells the time restrictions the IdP puts on an Assertion concerning "not before". ADuration.- See Also:
-
-
Constructor Details
-
AssertionSettings
Constructor.- Parameters:
settings- the settings
-
-
Method Details
-
getEncryptAssertions
Tells whether the Identity Provider encrypts assertions.- Returns:
trueif assertions should be encrypted andfalseotherwise.
-
getNotOnOrAfterDuration
Gets theDurationthat tells the time restrictions the IdP puts on an Assertion concerning "not on or after".- Returns:
- a
Duration
-
getNotBeforeDuration
Gets theDurationthat tells the time restrictions the IdP puts on an Assertion concerning "not before".- Returns:
- a
Duration
-
builder
Constructs a newAssertionSettings.Builderwith no settings.- Returns:
- the
AssertionSettings.Builder
-
withSettings
Constructs a newAssertionSettings.Builderwith the provided settings.- Parameters:
settings- the settings to initialize the builder- Returns:
- the builder
-