Class Saml2RedirectAuthenticationRequest.Builder
- java.lang.Object
-
- org.springframework.security.saml2.provider.service.authentication.Saml2RedirectAuthenticationRequest.Builder
-
- Enclosing class:
- Saml2RedirectAuthenticationRequest
public static class Saml2RedirectAuthenticationRequest.Builder extends java.lang.Object
Builder class for aSaml2RedirectAuthenticationRequest
object.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T
_this()
Casting the return as the generic subtype, when returning itselfT
authenticationRequestUri(java.lang.String authenticationRequestUri)
Sets theauthenticationRequestUri
, a URL that will receive the AuthNRequest messageSaml2RedirectAuthenticationRequest
build()
Constructs an immutableSaml2RedirectAuthenticationRequest
object.T
relayState(java.lang.String relayState)
Sets theRelayState
parameter that will accompany this AuthNRequestT
samlRequest(java.lang.String samlRequest)
Sets theSAMLRequest
parameter that will accompany this AuthNRequestSaml2RedirectAuthenticationRequest.Builder
sigAlg(java.lang.String sigAlg)
Sets theSigAlg
parameter that will accompany this AuthNRequestSaml2RedirectAuthenticationRequest.Builder
signature(java.lang.String signature)
Sets theSignature
parameter that will accompany this AuthNRequest
-
-
-
Method Detail
-
sigAlg
public Saml2RedirectAuthenticationRequest.Builder sigAlg(java.lang.String sigAlg)
Sets theSigAlg
parameter that will accompany this AuthNRequest- Parameters:
sigAlg
- the SigAlg parameter value.- Returns:
- this object
-
signature
public Saml2RedirectAuthenticationRequest.Builder signature(java.lang.String signature)
Sets theSignature
parameter that will accompany this AuthNRequest- Parameters:
signature
- the Signature parameter value.- Returns:
- this object
-
build
public Saml2RedirectAuthenticationRequest build()
Constructs an immutableSaml2RedirectAuthenticationRequest
object.- Returns:
- an immutable
Saml2RedirectAuthenticationRequest
object.
-
_this
protected final T _this()
Casting the return as the generic subtype, when returning itself- Returns:
- this object
-
relayState
public T relayState(java.lang.String relayState)
Sets theRelayState
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(java.lang.String samlRequest)
Sets theSAMLRequest
parameter that will accompany this AuthNRequest- Parameters:
samlRequest
- the SAMLRequest parameter.- Returns:
- this object
-
authenticationRequestUri
public T authenticationRequestUri(java.lang.String authenticationRequestUri)
Sets theauthenticationRequestUri
, a URL that will receive the AuthNRequest message- Parameters:
authenticationRequestUri
- the relay state value, unencoded.- Returns:
- this object
-
-