org.opensaml.common.binding
Class AbstractEndpointSelector

java.lang.Object
  extended by org.opensaml.common.binding.AbstractEndpointSelector
Direct Known Subclasses:
BasicEndpointSelector

public abstract class AbstractEndpointSelector
extends java.lang.Object

Endpoint selectors choose the endpoint that should be used to contact a relying party.


Constructor Summary
AbstractEndpointSelector()
          Constructor.
 
Method Summary
 javax.xml.namespace.QName getEndpointType()
          Gets type of endpoint needed.
 MetadataProvider getMetadataProvider()
          Gets the metadata provider used to look up relying party information.
 EntityDescriptor getRelyingParty()
          Gets the entity ID of the relying party.
 RoleDescriptor getRelyingPartyRole()
          Gets the role of the relying party.
 SAMLObject getSamlRequest()
          Gets the SAML request made.
 SAMLObject getSamlResponse()
          Gets the response to the SAML request.
 java.util.List<java.lang.String> getSupportedIssuerBindings()
          Gets the list of bindings supported by the message issuer.
abstract  Endpoint selectEndpoint()
          Selects the endpoint to which messages should be sent.
 void setEndpointType(javax.xml.namespace.QName type)
          Sets the type of endpoint needed.
 void setMetadataProvider(MetadataProvider provider)
          Sets the metadata provider used to look up relying party information.
 void setRelyingParty(EntityDescriptor entity)
          Sets the entity descriptor of the relying party.
 void setRelyingPartyRole(RoleDescriptor role)
          Sets the role of the relying party.
 void setSamlRequest(SAMLObject request)
          Sets the SAML request made.
 void setSamlResponse(SAMLObject response)
          Sets the response to the SAML request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEndpointSelector

public AbstractEndpointSelector()
Constructor.

Method Detail

getEndpointType

public javax.xml.namespace.QName getEndpointType()
Gets type of endpoint needed.

Returns:
type of endpoint needed

setEndpointType

public void setEndpointType(javax.xml.namespace.QName type)
Sets the type of endpoint needed.

Parameters:
type - type of endpoint needed

getMetadataProvider

public MetadataProvider getMetadataProvider()
Gets the metadata provider used to look up relying party information.

Returns:
metadata provider used to look up relying party information

setMetadataProvider

public void setMetadataProvider(MetadataProvider provider)
Sets the metadata provider used to look up relying party information.

Parameters:
provider - metadata provider used to look up relying party information

getRelyingParty

public EntityDescriptor getRelyingParty()
Gets the entity ID of the relying party.

Returns:
entity ID of the relying party

setRelyingParty

public void setRelyingParty(EntityDescriptor entity)
Sets the entity descriptor of the relying party.

Parameters:
entity - entity descriptor of the relying part

getRelyingPartyRole

public RoleDescriptor getRelyingPartyRole()
Gets the role of the relying party.

Returns:
role of the relying party

setRelyingPartyRole

public void setRelyingPartyRole(RoleDescriptor role)
Sets the role of the relying party.

Parameters:
role - role of the relying party

getSamlRequest

public SAMLObject getSamlRequest()
Gets the SAML request made.

Returns:
SAML request made

setSamlRequest

public void setSamlRequest(SAMLObject request)
Sets the SAML request made.

Parameters:
request - SAML request made

getSamlResponse

public SAMLObject getSamlResponse()
Gets the response to the SAML request.

Returns:
response to the SAML request

setSamlResponse

public void setSamlResponse(SAMLObject response)
Sets the response to the SAML request.

Parameters:
response - response to the SAML request

getSupportedIssuerBindings

public java.util.List<java.lang.String> getSupportedIssuerBindings()
Gets the list of bindings supported by the message issuer.

Returns:
list of bindings supported by the message issuer

selectEndpoint

public abstract Endpoint selectEndpoint()
Selects the endpoint to which messages should be sent.

Returns:
endpoint to which messages should be sent, or null if no suitable endpoint can be determined