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
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.Logger
log.static final QName
<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 -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doParse
(Element element, BeanDefinitionBuilder builder) private void
parseCertificates
(List<Element> childElements, BeanDefinitionBuilder builder) Parse the <Certificate> elements.private void
parseCRLs
(List<Element> childElements, BeanDefinitionBuilder builder) Parse the <CRL> elements.private void
parsePrivateKey
(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
-
Field Details
-
PRIVATE_KEY_ELEMENT_NAME
<PrivateKey>. -
CERTIFICATE_ELEMENT_NAME
<Certificate>. -
CRL_ELEMENT_NAME
<CRL>. -
log
private org.slf4j.Logger loglog.
-
-
Constructor Details
-
AbstractX509CredentialParser
public AbstractX509CredentialParser()
-
-
Method Details
-
doParse
- Overrides:
doParse
in 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
-