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
Base Parser for trust engines of type StaticPKIXKeySignature and StaticPKIXX509Credential.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
FactoryBean to do a deferred decision on whether to create aX509CredentialNameEvaluator
. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QName
Trusted Names Information.static final QName
Validation Information.Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BeanDefinition
getPKIXTrustEvaluator
(Element element, ParserContext parserContext) Get the definition for thePKIXTrustEvaluator
.protected BeanDefinition
getPKIXValidationInformationResolver
(Element element, ParserContext parserContext) Get the definition for thePKIXValidationInformationResolver
.protected Object
getX509CredentialNameEvaluator
(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
-
Field Details
-
VALIDATION_INFO
Validation Information. -
TRUSTED_NAMES
Trusted Names Information.
-
-
Constructor Details
-
AbstractStaticPKIXParser
public AbstractStaticPKIXParser()
-
-
Method Details
-
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 aCertPathPKIXTrustEvaluator
constructed 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.
-