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 Details

    • AbstractResponseValidationParametersBuilder

      public AbstractResponseValidationParametersBuilder()
  • Method Details

    • receiveUrl

      public T receiveUrl(String receiveUrl)
      Assigns the URL on which the message was received.
      Parameters:
      receiveUrl - the URL
      Returns:
      the builder
    • expectedIssuer

      public T expectedIssuer(String expectedIssuer)
      Assigns the expected issuer to be used when checking the issuer of an element.
      Parameters:
      expectedIssuer - the issuer entityID
      Returns:
      the builder
    • authnRequest

      public T authnRequest(org.opensaml.saml.saml2.core.AuthnRequest authnRequest)
      Assigns the AuthnRequest that was sent to give the message we are validating.
      Parameters:
      authnRequest - an AuthnRequest message
      Returns:
      the builder
    • authnRequestID

      public T authnRequestID(String authnRequestID)
      Assigns the ID of the AuthnRequest that was sent to give the message we are validating.
      Parameters:
      authnRequestID - ID
      Returns:
      the builder