org.opensaml.saml2.binding
Class AuthnResponseEndpointSelector

java.lang.Object
  extended by org.opensaml.common.binding.AbstractEndpointSelector
      extended by org.opensaml.common.binding.BasicEndpointSelector
          extended by 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.


Field Summary
private  org.slf4j.Logger log
          Class logger.
 
Constructor Summary
AuthnResponseEndpointSelector()
           
 
Method Summary
protected  List<? extends Endpoint> filterEndpointsByProtocolBinding(List<? extends Endpoint> endpoints)
          Filters the list of possible endpoints by supported outbound bindings and, if the authentication request contains a requested binding and not an ACS index, that too is used to filter the list.
 Endpoint selectEndpoint()
          Selects the endpoint to which messages should be sent.
protected  Endpoint selectEndpointByACSIndex(AuthnRequest request, List<IndexedEndpoint> endpoints)
          Selects the endpoint by way of the assertion consumer service index given in the AuthnRequest.
protected  Endpoint selectEndpointByACSURL(AuthnRequest request, List<IndexedEndpoint> endpoints)
          Selects the endpoint by way of the assertion consumer service URL given in the AuthnRequest.
 
Methods inherited from class org.opensaml.common.binding.BasicEndpointSelector
selectIndexedEndpoint, selectNonIndexedEndpoint
 
Methods inherited from class org.opensaml.common.binding.AbstractEndpointSelector
getEndpointType, getEntityMetadata, getEntityRoleMetadata, getMetadataProvider, getSamlRequest, getSamlResponse, getSupportedIssuerBindings, setEndpointType, setEntityMetadata, setEntityRoleMetadata, setMetadataProvider, setSamlRequest, setSamlResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private final org.slf4j.Logger log
Class logger.

Constructor Detail

AuthnResponseEndpointSelector

public AuthnResponseEndpointSelector()
Method Detail

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

filterEndpointsByProtocolBinding

protected List<? extends Endpoint> filterEndpointsByProtocolBinding(List<? extends Endpoint> endpoints)
Filters the list of possible endpoints by supported outbound bindings and, if the authentication request contains a requested binding and not an ACS index, that too is used to filter the list.

Overrides:
filterEndpointsByProtocolBinding in class BasicEndpointSelector
Parameters:
endpoints - raw list of endpoints
Returns:
filtered endpoints

selectEndpointByACSIndex

protected Endpoint selectEndpointByACSIndex(AuthnRequest request,
                                            List<IndexedEndpoint> endpoints)
Selects the endpoint by way of the assertion consumer service index given in the AuthnRequest.

Parameters:
request - the AuthnRequest
endpoints - list of endpoints to select from
Returns:
the selected endpoint

selectEndpointByACSURL

protected Endpoint selectEndpointByACSURL(AuthnRequest request,
                                          List<IndexedEndpoint> endpoints)
Selects the endpoint by way of the assertion consumer service URL given in the AuthnRequest.

Parameters:
request - the AuthnRequest
endpoints - list of endpoints to select from
Returns:
the selected endpoint


Copyright © 1999-2012. All Rights Reserved.