edu.internet2.middleware.shibboleth.common.config.metadata
Class HTTPMetadataProviderBeanDefinitionParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
edu.internet2.middleware.shibboleth.common.config.metadata.BaseMetadataProviderBeanDefinitionParser
edu.internet2.middleware.shibboleth.common.config.metadata.AbstractMetadataProviderBeanDefinitionParser
edu.internet2.middleware.shibboleth.common.config.metadata.AbstractReloadingMetadataProviderBeanDefinitionParser
edu.internet2.middleware.shibboleth.common.config.metadata.HTTPMetadataProviderBeanDefinitionParser
- All Implemented Interfaces:
- org.springframework.beans.factory.xml.BeanDefinitionParser
- Direct Known Subclasses:
- FileBackedHTTPMetadataProviderBeanDefinitionParser
public class HTTPMetadataProviderBeanDefinitionParser
- extends AbstractReloadingMetadataProviderBeanDefinitionParser
Spring bean definition parser for Shibboleth file backed url metadata provider definition.
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser |
ID_ATTRIBUTE |
Method Summary |
protected org.apache.commons.httpclient.HttpClient |
buildHttpClient(Element config,
String providerId,
URL metadataURL)
Builds the HTTP client used to fetch metadata. |
protected X509TrustManager |
buildNoTrustTrustManager()
Builds a X509TrustManager which bypasses all X.509 validation steps. |
protected void |
doParse(Element config,
org.springframework.beans.factory.xml.ParserContext parserContext,
org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
|
protected Class |
getBeanClass(Element element)
|
protected void |
setHttpBasicAuthSettings(org.apache.commons.httpclient.HttpClient httpClient,
Element config,
String providerId,
URL metadataURL)
Sets the basic authentication properties, if any, for the HTTP client used to fetch metadata. |
protected void |
setHttpProxySettings(org.opensaml.ws.soap.client.http.HttpClientBuilder builder,
Element config,
String providerId)
Sets the HTTP proxy properties, if any, for the HTTP client used to fetch metadata. |
Methods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser |
doParse, getBeanClassName, getParentName, parseInternal |
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser |
parse, postProcessComponentDefinition, registerBeanDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE_NAME
public static final QName TYPE_NAME
- Schema type name.
HTTPMetadataProviderBeanDefinitionParser
public HTTPMetadataProviderBeanDefinitionParser()
getBeanClass
protected Class getBeanClass(Element element)
-
- Overrides:
getBeanClass
in class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
doParse
protected void doParse(Element config,
org.springframework.beans.factory.xml.ParserContext parserContext,
org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
-
- Overrides:
doParse
in class AbstractReloadingMetadataProviderBeanDefinitionParser
buildHttpClient
protected org.apache.commons.httpclient.HttpClient buildHttpClient(Element config,
String providerId,
URL metadataURL)
- Builds the HTTP client used to fetch metadata.
- Parameters:
config
- the metadata provider configuration elementproviderId
- the ID of the metadata providermetadataURL
- the URL from which metadata will be fetched
- Returns:
- the constructed HTTP client
buildNoTrustTrustManager
protected X509TrustManager buildNoTrustTrustManager()
- Builds a
X509TrustManager
which bypasses all X.509 validation steps.
- Returns:
- the trustless trust manager
setHttpProxySettings
protected void setHttpProxySettings(org.opensaml.ws.soap.client.http.HttpClientBuilder builder,
Element config,
String providerId)
- Sets the HTTP proxy properties, if any, for the HTTP client used to fetch metadata.
- Parameters:
builder
- the HTTP client builderconfig
- the metadata provider configurationproviderId
- the ID of the metadata provider
setHttpBasicAuthSettings
protected void setHttpBasicAuthSettings(org.apache.commons.httpclient.HttpClient httpClient,
Element config,
String providerId,
URL metadataURL)
- Sets the basic authentication properties, if any, for the HTTP client used to fetch metadata.
- Parameters:
httpClient
- the HTTP clientconfig
- the metadata provider configurationproviderId
- the ID of the metadata providermetadataURL
- the URL from which metadata will be fetched
Copyright © 2006-2011 Internet2. All Rights Reserved.