public final class HTTPMetadataProvidersParserSupport extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BASIC_AUTH_PASSWORD
BASIC auth password.
|
static String |
BASIC_AUTH_USER
BASIC auth username.
|
private static org.slf4j.Logger |
LOG
Class logger.
|
static String |
METADATA_URL
The URL for the metadata.
|
static QName |
TLS_TRUST_ENGINE_ELEMENT_NAME
TLSTrustEngine element name.
|
| Modifier | Constructor and Description |
|---|---|
private |
HTTPMetadataProvidersParserSupport()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected static org.springframework.beans.factory.config.BeanDefinition |
buildBasicCredentials(Element element,
org.springframework.beans.factory.xml.ParserContext parserContext)
Build the BeanDefinition for the POJO with the username and password.
|
protected static org.springframework.beans.factory.support.BeanDefinitionBuilder |
buildCommonClientBuilder(Element element,
org.springframework.beans.factory.xml.ParserContext parserContext,
String defaultCaching,
String httpClientSecurityParametersRef,
org.springframework.beans.factory.config.BeanDefinition httpClientSecurityParameters)
Build a
BeanDefinitionBuilder for a HttpClientFactoryBean and populate it from the "standard"
attributes which are shared between the Dynamic and Static providers. |
protected static org.springframework.beans.factory.config.BeanDefinition |
buildTLSSocketFactory(Element element,
org.springframework.beans.factory.xml.ParserContext parserContext,
String httpClientSecurityParametersRef,
org.springframework.beans.factory.config.BeanDefinition httpClientSecurityParameters)
Build the definition of the HTTPClientBuilder which contains all our configuration.
|
protected static org.springframework.beans.factory.config.BeanDefinition |
parseTLSTrustEngine(String tlsTrustEngineRef,
Element tlsTrustEngine,
org.springframework.beans.factory.xml.ParserContext parserContext)
Build the BeanDefinition of the
HttpClientSecurityParameters which contains the TLS trust engine
provided. |
@Nonnull @NotEmpty public static final String BASIC_AUTH_USER
@Nonnull @NotEmpty public static final String BASIC_AUTH_PASSWORD
@Nonnull @NotEmpty public static final String METADATA_URL
@Nonnull public static final QName TLS_TRUST_ENGINE_ELEMENT_NAME
@Nonnull private static final org.slf4j.Logger LOG
private HTTPMetadataProvidersParserSupport()
protected static org.springframework.beans.factory.config.BeanDefinition buildTLSSocketFactory(@Nonnull Element element, @Nonnull org.springframework.beans.factory.xml.ParserContext parserContext, @Nullable String httpClientSecurityParametersRef, @Nullable org.springframework.beans.factory.config.BeanDefinition httpClientSecurityParameters)
element - the HTTPMetadataProvider parser.parserContext - contexthttpClientSecurityParametersRef - a reference,httpClientSecurityParameters - a bean definition@Nonnull protected static org.springframework.beans.factory.config.BeanDefinition buildBasicCredentials(Element element, @Nonnull org.springframework.beans.factory.xml.ParserContext parserContext)
element - the HTTPMetadataProvider elementparserContext - parser context@Nullable protected static org.springframework.beans.factory.config.BeanDefinition parseTLSTrustEngine(@Nullable String tlsTrustEngineRef, @Nullable Element tlsTrustEngine, @Nonnull org.springframework.beans.factory.xml.ParserContext parserContext)
HttpClientSecurityParameters which contains the TLS trust engine
provided.
One of the first two parameters must be non-null.
tlsTrustEngineRef - if present, the referencetlsTrustEngine - if present, the TLSTrustEngine elementparserContext - context@Nonnull protected static org.springframework.beans.factory.support.BeanDefinitionBuilder buildCommonClientBuilder(@Nonnull Element element, @Nonnull org.springframework.beans.factory.xml.ParserContext parserContext, @Nonnull String defaultCaching, @Nullable String httpClientSecurityParametersRef, @Nullable org.springframework.beans.factory.config.BeanDefinition httpClientSecurityParameters)
BeanDefinitionBuilder for a HttpClientFactoryBean and populate it from the "standard"
attributes which are shared between the Dynamic and Static providers. non standard defaults are applied by the
caller.element - the configurationparserContext - contextdefaultCaching - what to use if caching not supplied.httpClientSecurityParametersRef - the client security parameters ref to be usedhttpClientSecurityParameters - the client security parameters to be usedCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.