public class BasicEndpointSelector extends AbstractEndpointSelector
IndexedEndpoint
s the
first endpoint in the list is returned. If the remaining endpoints are IndexedEndpoint
s the first endpoint
with the isDefault attribute set to true is returned, if no isDefault attribute is set to true the first endpoint to
omit this attribute is returned, and if all the endpoints have the isDefault attribute set to false then the first
endpoint in the list is returned.
Prior to selecting the endpoint the following fields must have had values set: entity role,
endpoint type, issuer supported bindings.
While this algorithm with work for selecting the endpoint for responses to AuthnRequests the SAML
specification does stipulate additional endpoint selection criteria and as such the use of an endpoint selector
specifically meant to handler this situation should be used, for example: AuthnResponseEndpointSelector.Constructor and Description |
---|
BasicEndpointSelector() |
Modifier and Type | Method and Description |
---|---|
protected List<? extends Endpoint> |
filterEndpointsByProtocolBinding(List<? extends Endpoint> endpoints)
Filters the list of possible endpoints by supported outbound bindings.
|
Endpoint |
selectEndpoint()
Selects the endpoint to which messages should be sent.
|
protected Endpoint |
selectIndexedEndpoint(List<IndexedEndpoint> endpoints)
Selects an appropriate endpoint from a list of indexed endpoints.
|
protected Endpoint |
selectNonIndexedEndpoint(List<Endpoint> endpoints)
Selects an appropriate endpoint from a list of non-indexed endpoints.
|
getEndpointType, getEntityMetadata, getEntityRoleMetadata, getMetadataProvider, getSamlRequest, getSamlResponse, getSupportedIssuerBindings, setEndpointType, setEntityMetadata, setEntityRoleMetadata, setMetadataProvider, setSamlRequest, setSamlResponse
public Endpoint selectEndpoint()
selectEndpoint
in class AbstractEndpointSelector
protected List<? extends Endpoint> filterEndpointsByProtocolBinding(List<? extends Endpoint> endpoints)
endpoints
- raw list of endpointsprotected Endpoint selectIndexedEndpoint(List<IndexedEndpoint> endpoints)
endpoints
- list of indexed endpointsCopyright © 2018 JBoss by Red Hat. All rights reserved.