Class Saml2PostAuthenticationRequest
- java.lang.Object
-
- org.springframework.security.saml2.provider.service.authentication.AbstractSaml2AuthenticationRequest
-
- org.springframework.security.saml2.provider.service.authentication.Saml2PostAuthenticationRequest
-
- All Implemented Interfaces:
java.io.Serializable
public class Saml2PostAuthenticationRequest extends AbstractSaml2AuthenticationRequest
Data holder for information required to send anAuthNRequestover a POST binding from the service provider to the identity provider https://www.oasis-open.org/committees/download.php/35711/sstc-saml-core-errata-2.0-wd-06-diff.pdf (line 2031)- Since:
- 5.3
- See Also:
Saml2AuthenticationRequestFactory, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSaml2PostAuthenticationRequest.BuilderBuilder class for aSaml2PostAuthenticationRequestobject.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Saml2MessageBindinggetBinding()Returns the binding this AuthNRequest will be sent and encoded with.static Saml2PostAuthenticationRequest.BuilderwithAuthenticationRequestContext(Saml2AuthenticationRequestContext context)Constructs aSaml2PostAuthenticationRequest.Builderfrom aSaml2AuthenticationRequestContextobject.static Saml2PostAuthenticationRequest.BuilderwithRelyingPartyRegistration(RelyingPartyRegistration registration)Constructs aSaml2PostAuthenticationRequest.Builderfrom aRelyingPartyRegistrationobject.-
Methods inherited from class org.springframework.security.saml2.provider.service.authentication.AbstractSaml2AuthenticationRequest
getAuthenticationRequestUri, getRelayState, getRelyingPartyRegistrationId, getSamlRequest
-
-
-
-
Method Detail
-
getBinding
public Saml2MessageBinding getBinding()
Description copied from class:AbstractSaml2AuthenticationRequestReturns the binding this AuthNRequest will be sent and encoded with. IfSaml2MessageBinding.REDIRECTis used, the DEFLATE encoding will be automatically applied.- Specified by:
getBindingin classAbstractSaml2AuthenticationRequest- Returns:
Saml2MessageBinding.POST
-
withAuthenticationRequestContext
public static Saml2PostAuthenticationRequest.Builder withAuthenticationRequestContext(Saml2AuthenticationRequestContext context)
Constructs aSaml2PostAuthenticationRequest.Builderfrom aSaml2AuthenticationRequestContextobject. By default theAbstractSaml2AuthenticationRequest.getAuthenticationRequestUri()will be set to theSaml2AuthenticationRequestContext.getDestination()value.- Parameters:
context- input providingDestination,RelayState, andIssuerobjects.- Returns:
- a modifiable builder object
-
withRelyingPartyRegistration
public static Saml2PostAuthenticationRequest.Builder withRelyingPartyRegistration(RelyingPartyRegistration registration)
Constructs aSaml2PostAuthenticationRequest.Builderfrom aRelyingPartyRegistrationobject.- Parameters:
registration- a relying party registration- Returns:
- a modifiable builder object
- Since:
- 5.7
-
-