Class AbstractX509CredentialParser
- 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.credential.impl.AbstractCredentialParser
-
- net.shibboleth.idp.profile.spring.relyingparty.security.credential.impl.AbstractX509CredentialParser
-
- All Implemented Interfaces:
BeanDefinitionParser
- Direct Known Subclasses:
X509InlineCredentialParser,X509ResourceCredentialParser
public abstract class AbstractX509CredentialParser extends AbstractCredentialParser
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
Fields Modifier and Type Field Description static QNameCERTIFICATE_ELEMENT_NAME<Certificate>.static QNameCRL_ELEMENT_NAME<CRL>.private org.slf4j.Loggerloglog.static QNamePRIVATE_KEY_ELEMENT_NAME<PrivateKey>.-
Fields inherited from class net.shibboleth.idp.profile.spring.relyingparty.security.credential.impl.AbstractCredentialParser
CREDENTIAL_ELEMENT_NAME, KEY_NAME_ELEMENT_NAME
-
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description AbstractX509CredentialParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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.idp.profile.spring.relyingparty.security.credential.impl.AbstractCredentialParser
doParse, parseAttributes, parseKeyNames, resolveId
-
Methods inherited from class net.shibboleth.ext.spring.util.AbstractCustomBeanDefinitionParser
registerBeanDefinition
-
Methods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
getBeanClass, getBeanClassName, getParentName, parseInternal
-
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
-
-
-
-
Method Detail
-
doParse
protected void doParse(Element element, BeanDefinitionBuilder builder)
- 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
-
-