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 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
Tells whether the Identity Provider encrypts assertions.static final Boolean
Default value for theENCRYPT_ASSERTIONS
setting.static final String
A setting that tells the time restrictions the IdP puts on an Assertion concerning "not before".static final Duration
Default value for theNOT_BEFORE_DURATION
setting.static final String
A setting that tells the time restrictions the IdP puts on an Assertion concerning "not on or after".static final Duration
Default value for theNOT_ON_OR_AFTER_DURATION
setting. -
Constructor Summary
ModifierConstructorDescriptionprotected
AssertionSettings
(Map<String, Object> settings) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic AssertionSettings.Builder
builder()
Constructs a newAssertionSettings.Builder
with no settings.Tells whether the Identity Provider encrypts assertions.Gets theDuration
that tells the time restrictions the IdP puts on an Assertion concerning "not before".Gets theDuration
that tells the time restrictions the IdP puts on an Assertion concerning "not on or after".static AssertionSettings.Builder
withSettings
(Map<String, Object> settings) Constructs a newAssertionSettings.Builder
with 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_DURATION
setting. -
NOT_BEFORE_DURATION_DEFAULT
Default value for theNOT_BEFORE_DURATION
setting. -
ENCRYPT_ASSERTIONS_DEFAULT
Default value for theENCRYPT_ASSERTIONS
setting. -
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:
true
if assertions should be encrypted andfalse
otherwise.
-
getNotOnOrAfterDuration
Gets theDuration
that tells the time restrictions the IdP puts on an Assertion concerning "not on or after".- Returns:
- a
Duration
-
getNotBeforeDuration
Gets theDuration
that tells the time restrictions the IdP puts on an Assertion concerning "not before".- Returns:
- a
Duration
-
builder
Constructs a newAssertionSettings.Builder
with no settings.- Returns:
- the
AssertionSettings.Builder
-
withSettings
Constructs a newAssertionSettings.Builder
with the provided settings.- Parameters:
settings
- the settings to initialize the builder- Returns:
- the builder
-