|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.shibboleth.common.config.BaseService
edu.internet2.middleware.shibboleth.common.config.BaseReloadableService
edu.internet2.middleware.shibboleth.common.relyingparty.provider.SAMLMDRelyingPartyConfigurationManager
public class SAMLMDRelyingPartyConfigurationManager
A relying party manager that uses SAML metadata to lookup information about requested entities. Relying party
configuration information is looked up as follows:
If the given entity ID is null, empty, or contains only whitespace the anonymous relying party configuration is
returned. Otherwise, the given relying party entity ID is looked for in the list of registered
RelyingPartyConfiguration
s and if found is returned. If no configuration is registered for the specific
entity ID the entity descriptor for the relying party is located using the MetadataProvider
. The name of
ancestral entities descriptors are then looked up, in ascending order (i.e. the parent entities descriptor, then the
grandparent, great-grandparent, etc.), with the first configuration found being returned. If no configuration is
found once the top of the tree is reached the default configuration is returned.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.internet2.middleware.shibboleth.common.config.BaseReloadableService |
---|
BaseReloadableService.ConfigurationResourceListener |
Field Summary | |
---|---|
static String |
ANONYMOUS_RP_NAME
ID used for anonymous relying party. |
static String |
DEFAULT_RP_NAME
ID used for default relying party. |
Constructor Summary | |
---|---|
SAMLMDRelyingPartyConfigurationManager()
Constructor. |
Method Summary | |
---|---|
RelyingPartyConfiguration |
getAnonymousRelyingConfiguration()
Gets the relying party configuration to use for anonymous parties. |
RelyingPartyConfiguration |
getDefaultRelyingPartyConfiguration()
Gets the default relying party configuration. |
org.opensaml.saml2.metadata.provider.MetadataProvider |
getMetadataProvider()
Gets the metadata provider used to lookup information about entities. |
RelyingPartyConfiguration |
getRelyingPartyConfiguration(String relyingPartyEntityID)
Gets the configuration for the given relying party. |
Map<String,RelyingPartyConfiguration> |
getRelyingPartyConfigurations()
Gets the registered relying party configurations indexed by relying party ID. |
protected void |
onNewContextCreated(org.springframework.context.ApplicationContext newServiceContext)
Called after a new context has been created but before it set as the service's context. |
void |
setMetadataProvider(org.opensaml.saml2.metadata.provider.MetadataProvider provider)
Sets the metadata provider used to lookup information about entities. |
Methods inherited from class edu.internet2.middleware.shibboleth.common.config.BaseReloadableService |
---|
destroy, getPollingFrequency, getPollingRetryAttempts, getPollingTimer, initialize, reload, setPollingFrequency, setPollingRetryAttempts, setPollingTimer |
Methods inherited from class edu.internet2.middleware.shibboleth.common.config.BaseService |
---|
getApplicationContext, getId, getReadWriteLock, getServiceConfigurations, getServiceContext, isDestroyed, isInitialized, loadContext, setApplicationContext, setBeanName, setInitialized, setServiceConfigurations, setServiceContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.internet2.middleware.shibboleth.common.service.Service |
---|
getId, isDestroyed, isInitialized |
Field Detail |
---|
public static final String ANONYMOUS_RP_NAME
public static final String DEFAULT_RP_NAME
Constructor Detail |
---|
public SAMLMDRelyingPartyConfigurationManager()
Method Detail |
---|
public RelyingPartyConfiguration getAnonymousRelyingConfiguration()
getAnonymousRelyingConfiguration
in interface RelyingPartyConfigurationManager
public RelyingPartyConfiguration getDefaultRelyingPartyConfiguration()
getDefaultRelyingPartyConfiguration
in interface RelyingPartyConfigurationManager
public org.opensaml.saml2.metadata.provider.MetadataProvider getMetadataProvider()
public void setMetadataProvider(org.opensaml.saml2.metadata.provider.MetadataProvider provider)
provider
- metadata provider used to lookup information about entitiespublic RelyingPartyConfiguration getRelyingPartyConfiguration(String relyingPartyEntityID)
getRelyingPartyConfiguration
in interface RelyingPartyConfigurationManager
relyingPartyEntityID
- the entity of the relying part to get the configuration for
public Map<String,RelyingPartyConfiguration> getRelyingPartyConfigurations()
getRelyingPartyConfigurations
in interface RelyingPartyConfigurationManager
protected void onNewContextCreated(org.springframework.context.ApplicationContext newServiceContext) throws ServiceException
onNewContextCreated
in class BaseService
newServiceContext
- the newly created context for the service
ServiceException
- thrown if there is a problem with the given service context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |