Class ResponseValidationSettings
java.lang.Object
se.swedenconnect.opensaml.saml2.response.validation.ResponseValidationSettings
Configuration settings for response and assertion validation.
- Author:
- Martin Lindström (martin@idsec.se)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DurationThe default allowed clock skew (in milliseconds) - 30 seconds.static final DurationThe default age for a response message that we allow (in milliseconds) - 3 minutes.static final DurationDefault max session age (in milliseconds) - 1 hour. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the allowed clock skew.Returns the maximum allowed "age" of a response message.Returns the maximum session age allowed for SSO.booleanDo we require signed assertions?booleanPredicate telling whether strict validation should be performed.voidsetAllowedClockSkew(Duration allowedClockSkew) Assigns the allowed clock skew.voidsetMaxAgeResponse(Duration maxAgeResponse) Assigns the maximum allowed "age" of a response messagevoidsetMaxSessionAge(Duration maxSessionAge) Assigns the maximum session age allowed for SSO.voidsetRequireSignedAssertions(boolean requireSignedAssertions) Assigns whether we require signed assertions.voidsetStrictValidation(boolean strictValidation) Assigns telling whether strict validation should be performed.toString()
-
Field Details
-
DEFAULT_ALLOWED_CLOCK_SKEW
The default allowed clock skew (in milliseconds) - 30 seconds. -
DEFAULT_MAX_AGE_RESPONSE
The default age for a response message that we allow (in milliseconds) - 3 minutes. -
DEFAULT_MAX_SESSION_AGE
Default max session age (in milliseconds) - 1 hour.
-
-
Constructor Details
-
ResponseValidationSettings
public ResponseValidationSettings()
-
-
Method Details
-
getAllowedClockSkew
Returns the allowed clock skew.The default is
DEFAULT_ALLOWED_CLOCK_SKEW.- Returns:
- the allowed clock skew
-
setAllowedClockSkew
Assigns the allowed clock skew.The default is
DEFAULT_ALLOWED_CLOCK_SKEW.- Parameters:
allowedClockSkew- the allowed clock skew
-
getMaxAgeResponse
Returns the maximum allowed "age" of a response message.The default is
DEFAULT_MAX_AGE_RESPONSE.- Returns:
- the maximum allowed "age" of a response message
-
setMaxAgeResponse
Assigns the maximum allowed "age" of a response messageThe default is
DEFAULT_MAX_AGE_RESPONSE.- Parameters:
maxAgeResponse- the maximum allowed "age" of a response message
-
getMaxSessionAge
Returns the maximum session age allowed for SSO.The default is
DEFAULT_MAX_SESSION_AGE.- Returns:
- the maximum session age allowed for SSO
-
setMaxSessionAge
Assigns the maximum session age allowed for SSO.The default is
DEFAULT_MAX_SESSION_AGE.- Parameters:
maxSessionAge- the maximum session age allowed for SSO
-
isStrictValidation
public boolean isStrictValidation()Predicate telling whether strict validation should be performed.The default is
false.- Returns:
- whether strict validation should be performed
-
setStrictValidation
public void setStrictValidation(boolean strictValidation) Assigns telling whether strict validation should be performed.The default is
false.- Parameters:
strictValidation- whether strict validation should be performed
-
isRequireSignedAssertions
public boolean isRequireSignedAssertions()Do we require signed assertions?Should correspond the
WantAssertionsSignedof the SP metadata.- Returns:
- do we require signed assertions?
-
setRequireSignedAssertions
public void setRequireSignedAssertions(boolean requireSignedAssertions) Assigns whether we require signed assertions.Should correspond the
WantAssertionsSignedof the SP metadata.- Parameters:
requireSignedAssertions- whether we require signed assertions?
-
toString
-