public class Saml2PostAuthenticationRequest
extends java.lang.Object
AuthNRequest
over 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)Saml2AuthenticationRequestFactory
Modifier and Type | Class and Description |
---|---|
static class |
Saml2PostAuthenticationRequest.Builder
Builder class for a
Saml2PostAuthenticationRequest object. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthenticationRequestUri()
Returns the URI endpoint that this AuthNRequest should be sent to.
|
Saml2MessageBinding |
getBinding()
Returns the binding this AuthNRequest will be sent and
encoded with.
|
java.lang.String |
getRelayState()
Returns the RelayState value, if present in the parameters
|
java.lang.String |
getSamlRequest()
Returns the AuthNRequest XML value to be sent.
|
static Saml2PostAuthenticationRequest.Builder |
withAuthenticationRequestContext(Saml2AuthenticationRequestContext context)
Constructs a
Saml2PostAuthenticationRequest.Builder from a Saml2AuthenticationRequestContext object. |
public Saml2MessageBinding getBinding()
Saml2MessageBinding.REDIRECT
is used, the DEFLATE encoding will be automatically applied.Saml2MessageBinding.POST
public static Saml2PostAuthenticationRequest.Builder withAuthenticationRequestContext(Saml2AuthenticationRequestContext context)
Saml2PostAuthenticationRequest.Builder
from a Saml2AuthenticationRequestContext
object.
By default the AbstractSaml2AuthenticationRequest.getAuthenticationRequestUri()
will be set to the
Saml2AuthenticationRequestContext.getDestination()
value.context
- input providing Destination
, RelayState
, and Issuer
objects.public java.lang.String getSamlRequest()
getBinding()
is Saml2MessageBinding.REDIRECT
the value is deflated and SAML encoded.
If getBinding()
is Saml2MessageBinding.POST
the value is SAML encoded.public java.lang.String getRelayState()
public java.lang.String getAuthenticationRequestUri()