public class Saml2AuthenticationRequestContext
extends java.lang.Object
AuthNRequest
to be sent from
the service provider to the identity provider
Assertions and Protocols for SAML 2 (line 2031)Modifier and Type | Class and Description |
---|---|
static class |
Saml2AuthenticationRequestContext.Builder
A builder for
Saml2AuthenticationRequestContext . |
Modifier | Constructor and Description |
---|---|
protected |
Saml2AuthenticationRequestContext(RelyingPartyRegistration relyingPartyRegistration,
java.lang.String issuer,
java.lang.String assertionConsumerServiceUrl,
java.lang.String relayState) |
Modifier and Type | Method and Description |
---|---|
static Saml2AuthenticationRequestContext.Builder |
builder()
A builder for
Saml2AuthenticationRequestContext . |
java.lang.String |
getAssertionConsumerServiceUrl()
Returns the desired
AssertionConsumerServiceUrl that this SP wishes to
receive the assertion on. |
java.lang.String |
getDestination()
Returns the
Destination , the WEB Single Sign On URI, for this
authentication request. |
java.lang.String |
getIssuer()
Returns the
Issuer value to be used in the AuthNRequest object. |
java.lang.String |
getRelayState()
Returns the RelayState value, if present in the parameters
|
RelyingPartyRegistration |
getRelyingPartyRegistration()
Returns the
RelyingPartyRegistration configuration for which the
AuthNRequest is intended for. |
protected Saml2AuthenticationRequestContext(RelyingPartyRegistration relyingPartyRegistration, java.lang.String issuer, java.lang.String assertionConsumerServiceUrl, java.lang.String relayState)
public RelyingPartyRegistration getRelyingPartyRegistration()
RelyingPartyRegistration
configuration for which the
AuthNRequest is intended for.RelyingPartyRegistration
configurationpublic java.lang.String getIssuer()
Issuer
value to be used in the AuthNRequest
object.
This property should be used to populate the AuthNRequest.Issuer
XML
element. This value typically is a URI, but can be an arbitrary string.public java.lang.String getAssertionConsumerServiceUrl()
AssertionConsumerServiceUrl
that this SP wishes to
receive the assertion on. The IDP may or may not honor this request. This property
populates the AuthNRequest.AssertionConsumerServiceURL
XML attribute.public java.lang.String getRelayState()
public java.lang.String getDestination()
Destination
, the WEB Single Sign On URI, for this
authentication request. This property can also populate the
AuthNRequest.Destination
XML attribute.public static Saml2AuthenticationRequestContext.Builder builder()
Saml2AuthenticationRequestContext
.