Class AbstractStaticPKIXParser
- java.lang.Object
-
- org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
-
- org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
-
- net.shibboleth.ext.spring.util.AbstractCustomBeanDefinitionParser
-
- net.shibboleth.idp.profile.spring.relyingparty.security.trustengine.impl.AbstractTrustEngineParser
-
- net.shibboleth.idp.profile.spring.relyingparty.security.trustengine.impl.AbstractStaticPKIXParser
-
- All Implemented Interfaces:
BeanDefinitionParser
- Direct Known Subclasses:
StaticPKIXSignatureParser,StaticPKIXX509CredentialParser
public abstract class AbstractStaticPKIXParser extends AbstractTrustEngineParser
Base Parser for trust engines of type StaticPKIXKeySignature and StaticPKIXX509Credential.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAbstractStaticPKIXParser.X509CredentialNameEvaluatorFactoryBeanFactoryBean to do a deferred decision on whether to create aX509CredentialNameEvaluator.
-
Field Summary
Fields Modifier and Type Field Description static QNameTRUSTED_NAMESTrusted Names Information.static QNameVALIDATION_INFOValidation Information.-
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description AbstractStaticPKIXParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BeanDefinitiongetPKIXTrustEvaluator(Element element, ParserContext parserContext)Get the definition for thePKIXTrustEvaluator.protected BeanDefinitiongetPKIXValidationInformationResolver(Element element, ParserContext parserContext)Get the definition for thePKIXValidationInformationResolver.protected ObjectgetX509CredentialNameEvaluator(Element element, ParserContext parserContext)Get the effective X509CredentialNameEvaluator to use.-
Methods inherited from class net.shibboleth.idp.profile.spring.relyingparty.security.trustengine.impl.AbstractTrustEngineParser
doParse, resolveId
-
Methods inherited from class net.shibboleth.ext.spring.util.AbstractCustomBeanDefinitionParser
registerBeanDefinition
-
Methods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
doParse, getBeanClass, getBeanClassName, getParentName, parseInternal
-
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
-
-
-
-
Method Detail
-
getPKIXValidationInformationResolver
protected BeanDefinition getPKIXValidationInformationResolver(@Nonnull Element element, @Nonnull ParserContext parserContext)
Get the definition for thePKIXValidationInformationResolver. This is constructed from the Trusted names and the Validation Info.- Parameters:
element- what to parseparserContext- the context to parse inside- Returns:
- the definition
-
getPKIXTrustEvaluator
protected BeanDefinition getPKIXTrustEvaluator(@Nonnull Element element, @Nonnull ParserContext parserContext)
Get the definition for thePKIXTrustEvaluator. This is purely aCertPathPKIXTrustEvaluatorconstructed with whatever ValidationOptions we provide.- Parameters:
element- what to parseparserContext- the context to parse inside- Returns:
- the definition
-
getX509CredentialNameEvaluator
protected Object getX509CredentialNameEvaluator(@Nonnull Element element, @Nonnull ParserContext parserContext)
Get the effective X509CredentialNameEvaluator to use. Currently we return a literal value, but in the future a BeanDefinition could be returned if necessary if we support toggling the name evaluator settings, hence the Object return type.- Parameters:
element- what to parseparserContext- the context to parse inside- Returns:
- an X509CredentialNameEvaluator instance or a BeanDefinition. May be null.
-
-