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 SummaryConstructorsModifierConstructorDescriptionprotectedBuilder()Deprecated.protectedBuilder(RelyingPartyRegistration registration) Creates a new Builder with relying party registration
- 
Method SummaryModifier and TypeMethodDescriptionprotected final T_this()Casting the return as the generic subtype, when returning itselfauthenticationRequestUri(String authenticationRequestUri) Sets theauthenticationRequestUri, a URL that will receive the AuthNRequest messageThis is the unique id used in thesamlRequestrelayState(String relayState) Sets theRelayStateparameter that will accompany this AuthNRequestsamlRequest(String samlRequest) Sets theSAMLRequestparameter that will accompany this AuthNRequest
- 
Constructor Details- 
BuilderDeprecated.UseBuilder(RelyingPartyRegistration)instead
- 
BuilderCreates a new Builder with relying party registration- Parameters:
- registration- the registration of the relying party.
- Since:
- 5.8
 
 
- 
- 
Method Details- 
_thisCasting the return as the generic subtype, when returning itself- Returns:
- this object
 
- 
relayStateSets theRelayStateparameter 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
 
- 
samlRequestSets theSAMLRequestparameter that will accompany this AuthNRequest- Parameters:
- samlRequest- the SAMLRequest parameter.
- Returns:
- this object
 
- 
authenticationRequestUriSets theauthenticationRequestUri, a URL that will receive the AuthNRequest message- Parameters:
- authenticationRequestUri- the relay state value, unencoded.
- Returns:
- this object
 
- 
idThis is the unique id used in thesamlRequest- Parameters:
- id- the SAML2 request id
- Returns:
- the AbstractSaml2AuthenticationRequest.Builderfor further configurations
- Since:
- 5.8
 
 
- 
Builder(RelyingPartyRegistration)instead