Class AbstractResponseValidationParametersBuilder<T extends AbstractResponseValidationParametersBuilder<T>>
java.lang.Object
se.swedenconnect.opensaml.common.validation.AbstractValidationParametersBuilder<T>
se.swedenconnect.opensaml.saml2.response.validation.AbstractResponseValidationParametersBuilder<T>
- All Implemented Interfaces:
ValidationParametersBuilder
- Direct Known Subclasses:
AbstractAssertionValidationParametersBuilder
,ResponseValidationParametersBuilder
public abstract class AbstractResponseValidationParametersBuilder<T extends AbstractResponseValidationParametersBuilder<T>>
extends AbstractValidationParametersBuilder<T>
Abstract builder class for building the
ValidationContext
object for use as validation input to the
ResponseValidator
.
The reason for all fiddling with generics is that we want to be able to subclass the builder classes.
- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthnRequest
(org.opensaml.saml.saml2.core.AuthnRequest authnRequest) Assigns theAuthnRequest
that was sent to give the message we are validating.authnRequestID
(String authnRequestID) Assigns the ID of theAuthnRequest
that was sent to give the message we are validating.expectedIssuer
(String expectedIssuer) Assigns the expected issuer to be used when checking the issuer of an element.receiveUrl
(String receiveUrl) Assigns the URL on which the message was received.Methods inherited from class se.swedenconnect.opensaml.common.validation.AbstractValidationParametersBuilder
addDynamicParameter, addDynamicParameters, addStaticParameter, addStaticParameterIfMissing, addStaticParameters, allowedClockSkew, allowedClockSkew, build, dynamicParameter, getDynamicParameter, getStaticParameter, getThis, maxAgeReceivedMessage, maxAgeReceivedMessage, receiveInstant, receiveInstant, signatureRequired, signatureValidationCriteriaSet, staticParameter, strictValidation
-
Constructor Details
-
AbstractResponseValidationParametersBuilder
public AbstractResponseValidationParametersBuilder()
-
-
Method Details
-
receiveUrl
Assigns the URL on which the message was received.- Parameters:
receiveUrl
- the URL- Returns:
- the builder
-
expectedIssuer
Assigns the expected issuer to be used when checking the issuer of an element.- Parameters:
expectedIssuer
- the issuer entityID- Returns:
- the builder
-
authnRequest
Assigns theAuthnRequest
that was sent to give the message we are validating.- Parameters:
authnRequest
- an AuthnRequest message- Returns:
- the builder
-
authnRequestID
Assigns the ID of theAuthnRequest
that was sent to give the message we are validating.- Parameters:
authnRequestID
- ID- Returns:
- the builder
-