Class AbstractSaml2AuthenticationRequest.Builder<T extends AbstractSaml2AuthenticationRequest.Builder<T>>

java.lang.Object
org.springframework.security.saml2.provider.service.authentication.AbstractSaml2AuthenticationRequest.Builder<T>
Direct Known Subclasses:
Saml2PostAuthenticationRequest.Builder, Saml2RedirectAuthenticationRequest.Builder
Enclosing class:
AbstractSaml2AuthenticationRequest

public static class AbstractSaml2AuthenticationRequest.Builder<T extends AbstractSaml2AuthenticationRequest.Builder<T>> extends Object
A builder for AbstractSaml2AuthenticationRequest and its subclasses.
  • Constructor Details

  • Method Details

    • _this

      protected final T _this()
      Casting the return as the generic subtype, when returning itself
      Returns:
      this object
    • relayState

      public T relayState(String relayState)
      Sets the RelayState parameter that will accompany this AuthNRequest
      Parameters:
      relayState - the relay state value, unencoded. if null or empty, the parameter will be removed from the map.
      Returns:
      this object
    • samlRequest

      public T samlRequest(String samlRequest)
      Sets the SAMLRequest parameter that will accompany this AuthNRequest
      Parameters:
      samlRequest - the SAMLRequest parameter.
      Returns:
      this object
    • authenticationRequestUri

      public T authenticationRequestUri(String authenticationRequestUri)
      Sets the authenticationRequestUri, a URL that will receive the AuthNRequest message
      Parameters:
      authenticationRequestUri - the relay state value, unencoded.
      Returns:
      this object
    • id

      public T id(String id)
      This is the unique id used in the samlRequest
      Parameters:
      id - the SAML2 request id
      Returns:
      the AbstractSaml2AuthenticationRequest.Builder for further configurations
      Since:
      5.8