public abstract class BaseSAMLProfileConfigurationParser
extends org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
AbstractSAMLProfileConfiguration
and for elements which inherit from saml:SAMLProfileConfigutationType.| Modifier and Type | Field and Description |
|---|---|
private boolean |
artifactAware
Flag controlling whether to parse artifact configuration.
|
private org.slf4j.Logger |
log
Class logger.
|
| Constructor and Description |
|---|
BaseSAMLProfileConfigurationParser() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doParse(Element element,
org.springframework.beans.factory.xml.ParserContext parserContext,
org.springframework.beans.factory.support.BeanDefinitionBuilder builder) |
protected org.springframework.beans.factory.config.BeanDefinition |
getArtifactConfiguration(Element element)
Construct the builder for the artifact configuration.
|
protected List<String> |
getAudiences(Element element)
Get the list of audiences from the <Audience> sub-elements.
|
protected abstract String |
getProfileBeanNamePrefix()
Get the prefix for the default beans.
|
private org.springframework.beans.factory.config.BeanDefinition |
predicateFor(String value,
Class<? extends com.google.common.base.Predicate> claz)
Return the definition describing the predicate associated with the provided value, using the default if none
specified.
|
protected org.springframework.beans.factory.config.BeanDefinition |
predicateForEncryption(String value)
Return the definition of the predicate for encryption derived from the provided string.
|
protected org.springframework.beans.factory.config.BeanDefinition |
predicateForSigning(String value)
Return the definition of the predicate for signing derived from the provided string.
|
protected void |
setArtifactAware(boolean flag)
Set whether to parse artifact configuration.
|
private void |
setSecurityConfiguration(Element element,
org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
org.springframework.beans.factory.xml.ParserContext parserContext)
Setup the
SecurityConfiguration for this profile. |
protected boolean |
shouldGenerateId() |
doParse, getBeanClass, getBeanClassName, getParentName, parseInternal@Nonnull private final org.slf4j.Logger log
private boolean artifactAware
protected void setArtifactAware(boolean flag)
flag - flag to set@Nullable protected org.springframework.beans.factory.config.BeanDefinition getArtifactConfiguration(Element element)
element - The element under consideration@Nonnull private org.springframework.beans.factory.config.BeanDefinition predicateFor(@Nullable String value, Class<? extends com.google.common.base.Predicate> claz)
value - the value as a string should be "always", "conditional", "never"claz - the predicate type to summon up (one of LegacySigningRequirementPredicate or
LegacyEncryptionRequirementPredicate@Nonnull protected org.springframework.beans.factory.config.BeanDefinition predicateForSigning(@Nullable String value)
value - the valueLegacySigningRequirementPredicate@Nonnull protected org.springframework.beans.factory.config.BeanDefinition predicateForEncryption(@Nullable String value)
value - the valueLegacyEncryptionRequirementPredicateprotected List<String> getAudiences(Element element)
element - the element under discussionprivate void setSecurityConfiguration(Element element, org.springframework.beans.factory.support.BeanDefinitionBuilder builder, org.springframework.beans.factory.xml.ParserContext parserContext)
SecurityConfiguration for this profile. We look first at the embedded beans for a bean of the
correct type. Failing that we look for a defaultSigningCredential.element - the element with the profile in itbuilder - the builder for the profileparserContext - the parser contextprotected void doParse(Element element, org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
doParse in class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParserprotected boolean shouldGenerateId()
shouldGenerateId in class org.springframework.beans.factory.xml.AbstractBeanDefinitionParserprotected abstract String getProfileBeanNamePrefix()
Copyright © 1999–2018 Shibboleth Consortium. All rights reserved.