Class AbstractX509CredentialParser
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.credential.AbstractCredentialParser
net.shibboleth.spring.security.credential.AbstractX509CredentialParser
- All Implemented Interfaces:
BeanDefinitionParser
- Direct Known Subclasses:
X509InlineCredentialParser,X509ResourceCredentialParser
Specific parser for all X509Credentials.
This does the work of putting the element values into strings. The bean factory then does the correct thing - with some help from Spring doing auto-conversion.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QName<Certificate>.static final QName<CRL>.private org.slf4j.Loggerlog.static final QName<PrivateKey>.Fields inherited from class net.shibboleth.spring.security.credential.AbstractCredentialParser
CREDENTIAL_ELEMENT_NAME, KEY_NAME_ELEMENT_NAMEFields 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 voiddoParse(Element element, BeanDefinitionBuilder builder) private voidparseCertificates(List<Element> childElements, BeanDefinitionBuilder builder) Parse the <Certificate> elements.private voidparseCRLs(List<Element> childElements, BeanDefinitionBuilder builder) Parse the <CRL> elements.private voidparsePrivateKey(List<Element> childElements, BeanDefinitionBuilder builder) Parse the <PrivateKey> element.Methods inherited from class net.shibboleth.spring.security.credential.AbstractCredentialParser
doParse, parseAttributes, parseKeyNames, resolveIdMethods inherited from class net.shibboleth.shared.spring.custom.AbstractCustomBeanDefinitionParser
getCustomProperty, registerBeanDefinitionMethods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
getBeanClass, getBeanClassName, getParentName, parseInternalMethods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
-
Field Details
-
PRIVATE_KEY_ELEMENT_NAME
<PrivateKey>. -
CERTIFICATE_ELEMENT_NAME
<Certificate>. -
CRL_ELEMENT_NAME
<CRL>. -
log
@Nonnull private org.slf4j.Logger loglog.
-
-
Constructor Details
-
AbstractX509CredentialParser
public AbstractX509CredentialParser()
-
-
Method Details
-
doParse
- Overrides:
doParsein classAbstractSingleBeanDefinitionParser
-
parsePrivateKey
private void parsePrivateKey(@Nullable List<Element> childElements, @Nonnull BeanDefinitionBuilder builder) Parse the <PrivateKey> element.- Parameters:
childElements- the elements containing the private key, may be null or empty.builder- the builder
-
parseCertificates
private void parseCertificates(@Nullable List<Element> childElements, @Nonnull BeanDefinitionBuilder builder) Parse the <Certificate> elements.- Parameters:
childElements- the elements containing the certificates, Must have at least one element.builder- the builder
-
parseCRLs
private void parseCRLs(@Nullable List<Element> childElements, @Nonnull BeanDefinitionBuilder builder) Parse the <CRL> elements.- Parameters:
childElements- the elements containing the CRLs, Must have at least one element.builder- the builder
-