|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.internet2.middleware.shibboleth.wayf.IdPSiteSet
public class IdPSiteSet
Represents a collection of related sites as desribed by a single soirce of metadata. This is usually a federation. When the WAYF looks to see which IdP sites to show, it trims the list so as to not show IdP's which do not trust the SP. This class is opaque outside this file. The three static methods getSitesLists, searchForMatchingOrigins and lookupIdP provide mechansims for accessing collections of IdPSiteSets.
Constructor Summary | |
---|---|
protected |
IdPSiteSet(Element el,
org.opensaml.xml.parse.ParserPool parserPool,
boolean warnOnBadBinding)
Create a new IdPSiteSet as described by the supplied XML segment. |
Method Summary | |
---|---|
protected void |
addPlugin(Plugin plugin)
Declares a plugin to the siteset. |
protected boolean |
containsIdP(String IdPName)
For plugin handling we need to know quickly if a metadataset contains the idp. |
protected boolean |
containsSP(String SPName)
We do not need to look at a set if it doesn't know about the given SP. |
protected String |
getDisplayName()
Return the human friendly name for this siteset. |
protected org.opensaml.saml2.metadata.EntityDescriptor |
getEntity(String name)
|
protected String |
getIdentifier()
Return this sites (internal) identifier. |
protected Map<String,IdPSite> |
getIdPSites(String searchString,
HandlerConfig config,
Collection<IdPSite> searchMatches)
Return all the Idp in the provided entities descriptor. |
protected IdPSite |
getSite(String idpName)
Return the idpSite for the given entity name. |
void |
onEvent(org.opensaml.saml2.metadata.provider.MetadataProvider provider)
|
protected PluginMetadataParameter |
paramFor(Plugin plugin)
Return the parameter that this plugin uses. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected IdPSiteSet(Element el, org.opensaml.xml.parse.ParserPool parserPool, boolean warnOnBadBinding) throws ShibbolethConfigurationException
el
- - configuration details.parserPool
- - the parsers we initialized above.warnOnBadBinding
- if we just warn or give an error if an SP has bad entry points.
ShibbolethConfigurationException
- - if something goes wrong.Method Detail |
---|
protected Map<String,IdPSite> getIdPSites(String searchString, HandlerConfig config, Collection<IdPSite> searchMatches)
searchString
- to match withconfig
- parameter to mathingsearchMatches
- if non null is filled with such of the sites which match the string
protected String getIdentifier()
protected String getDisplayName()
protected boolean containsSP(String SPName)
SPName
- the Sp we are interested in.
protected boolean containsIdP(String IdPName)
IdPName
- the IdP we are interested in.
protected void addPlugin(Plugin plugin)
plugin
- what to declareprotected PluginMetadataParameter paramFor(Plugin plugin)
plugin
-
public void onEvent(org.opensaml.saml2.metadata.provider.MetadataProvider provider)
onEvent
in interface org.opensaml.saml2.metadata.provider.ObservableMetadataProvider.Observer
protected IdPSite getSite(String idpName) throws WayfException
idpName
- the entityname to look up
WayfException
protected org.opensaml.saml2.metadata.EntityDescriptor getEntity(String name) throws WayfException
WayfException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |