Class AbstractStaticPKIXParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
net.shibboleth.shared.spring.custom.AbstractCustomBeanDefinitionParser
net.shibboleth.spring.security.trust.AbstractTrustEngineParser
net.shibboleth.spring.security.trust.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 classFactoryBean to do a deferred decision on whether to create a live or dummyX509CredentialNameEvaluator. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QNameTrusted Names Information.static final QNameValidation Information.Fields inherited from class net.shibboleth.shared.spring.custom.AbstractCustomBeanDefinitionParser
CUSTOM_PARSER_PROPERTIES_LOCATIONFields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.spring.security.trust.AbstractTrustEngineParser
doParse, resolveIdMethods inherited from class net.shibboleth.shared.spring.custom.AbstractCustomBeanDefinitionParser
getCustomProperty, registerBeanDefinitionMethods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
doParse, getBeanClass, getBeanClassName, getParentName, parseInternalMethods 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
@Nonnull 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
@Nonnull 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
@Nonnull 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.
-