Class Saml2RedirectAuthenticationRequest
java.lang.Object
org.springframework.security.saml2.provider.service.authentication.AbstractSaml2AuthenticationRequest
org.springframework.security.saml2.provider.service.authentication.Saml2RedirectAuthenticationRequest
- All Implemented Interfaces:
Serializable
Data holder for information required to send an
AuthNRequest
over a REDIRECT
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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder class for aSaml2RedirectAuthenticationRequest
object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the binding this AuthNRequest will be sent and encoded with.Returns the SigAlg value forSaml2MessageBinding.REDIRECT
requestsReturns the Signature value forSaml2MessageBinding.REDIRECT
requestswithRelyingPartyRegistration
(RelyingPartyRegistration registration) Constructs aSaml2PostAuthenticationRequest.Builder
from aRelyingPartyRegistration
object.Methods inherited from class org.springframework.security.saml2.provider.service.authentication.AbstractSaml2AuthenticationRequest
getAuthenticationRequestUri, getRelayState, getRelyingPartyRegistrationId, getSamlRequest
-
Method Details
-
getSigAlg
Returns the SigAlg value forSaml2MessageBinding.REDIRECT
requests- Returns:
- the SigAlg value
-
getSignature
Returns the Signature value forSaml2MessageBinding.REDIRECT
requests- Returns:
- the Signature value
-
getBinding
Description copied from class:AbstractSaml2AuthenticationRequest
Returns the binding this AuthNRequest will be sent and encoded with. IfSaml2MessageBinding.REDIRECT
is used, the DEFLATE encoding will be automatically applied.- Specified by:
getBinding
in classAbstractSaml2AuthenticationRequest
- Returns:
Saml2MessageBinding.REDIRECT
-
withRelyingPartyRegistration
public static Saml2RedirectAuthenticationRequest.Builder withRelyingPartyRegistration(RelyingPartyRegistration registration) Constructs aSaml2PostAuthenticationRequest.Builder
from aRelyingPartyRegistration
object.- Parameters:
registration
- a relying party registration- Returns:
- a modifiable builder object
- Since:
- 5.7
-