org.opensaml.saml2.binding
Class AuthnResponseEndpointSelector
java.lang.Object
org.opensaml.common.binding.AbstractEndpointSelector
org.opensaml.common.binding.BasicEndpointSelector
org.opensaml.saml2.binding.AuthnResponseEndpointSelector
public class AuthnResponseEndpointSelector
- extends BasicEndpointSelector
An endpoint selector that implements the additional selection constraints described within the SAML 2.0 AuthnRequest
specification. If an endpoint can not be resolved using either the information within the assertion consumer service
index or the assertion consumer service URL given in the authentication request, or if this information isn't
present, than the rules for the BasicEndpointSelector
are used.
Methods inherited from class org.opensaml.common.binding.AbstractEndpointSelector |
getEndpointType, getMetadataProvider, getRelyingParty, getRelyingPartyRole, getSamlRequest, getSamlResponse, getSupportedIssuerBindings, setEndpointType, setMetadataProvider, setRelyingParty, setRelyingPartyRole, setSamlRequest, setSamlResponse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuthnResponseEndpointSelector
public AuthnResponseEndpointSelector()
selectEndpoint
public Endpoint selectEndpoint()
- Selects the endpoint to which messages should be sent.
- Overrides:
selectEndpoint
in class BasicEndpointSelector
- Returns:
- endpoint to which messages should be sent, or null if no suitable endpoint can be determined
selectEndpointByACSIndex
protected Endpoint selectEndpointByACSIndex(AuthnRequest request,
java.util.List<IndexedEndpoint> endpoints)
- Selects the endpoint by way of the assertion consumer service index given in the AuthnRequest.
- Parameters:
request
- the AuthnRequestendpoints
- list of endpoints to select from
- Returns:
- the selected endpoint
selectEndpointByACSURL
protected Endpoint selectEndpointByACSURL(AuthnRequest request,
java.util.List<IndexedEndpoint> endpoints)
- Selects the endpoint by way of the assertion consumer service URL given in the AuthnRequest.
- Parameters:
request
- the AuthnRequestendpoints
- list of endpoints to select from
- Returns:
- the selected endpoint