edu.internet2.middleware.shibboleth.common.config.security
Class AbstractX509CredentialBeanDefinitionParser

java.lang.Object
  extended by org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
      extended by org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
          extended by edu.internet2.middleware.shibboleth.common.config.security.AbstractCredentialBeanDefinitionParser
              extended by edu.internet2.middleware.shibboleth.common.config.security.AbstractX509CredentialBeanDefinitionParser
All Implemented Interfaces:
BeanDefinitionParser
Direct Known Subclasses:
FilesystemX509CredentialBeanDefinitionParser, InlineX509CredentialBeanDefinitionParser

public abstract class AbstractX509CredentialBeanDefinitionParser
extends AbstractCredentialBeanDefinitionParser

Base class for X509 credential beans.


Field Summary
 
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE
 
Constructor Summary
AbstractX509CredentialBeanDefinitionParser()
           
 
Method Summary
protected  void doParse(Element element, BeanDefinitionBuilder builder)
          
protected  Class getBeanClass(Element element)
          
protected abstract  byte[] getEncodedCertificate(String certConfigContent)
          Extracts the certificate bytes from the content of a Certificate configuration element.
protected abstract  byte[] getEncodedCRL(String certCRLContent)
          Extracts the CRL(s) bytes from the content of a CRL configuration element.
protected  void parseCertificates(Map<QName,List<Element>> configChildren, BeanDefinitionBuilder builder)
          Parses the certificates from the credential configuration.
protected  void parseCRLs(Map<QName,List<Element>> configChildren, BeanDefinitionBuilder builder)
          Parses the CRLs from the credential configuration.
protected  String resolveId(Element element, AbstractBeanDefinition definition, ParserContext parserContext)
          
 
Methods inherited from class edu.internet2.middleware.shibboleth.common.config.security.AbstractCredentialBeanDefinitionParser
getEncodedPrivateKey, parseAttributes, parseCommon, parseKeyNames, parsePrivateKey
 
Methods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
doParse, getBeanClassName, getParentName, parseInternal
 
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractX509CredentialBeanDefinitionParser

public AbstractX509CredentialBeanDefinitionParser()
Method Detail

getBeanClass

protected Class getBeanClass(Element element)

Overrides:
getBeanClass in class AbstractSingleBeanDefinitionParser

resolveId

protected String resolveId(Element element,
                           AbstractBeanDefinition definition,
                           ParserContext parserContext)

Overrides:
resolveId in class AbstractCredentialBeanDefinitionParser

doParse

protected void doParse(Element element,
                       BeanDefinitionBuilder builder)

Overrides:
doParse in class AbstractSingleBeanDefinitionParser

parseCertificates

protected void parseCertificates(Map<QName,List<Element>> configChildren,
                                 BeanDefinitionBuilder builder)
Parses the certificates from the credential configuration.

Parameters:
configChildren - children of the credential element
builder - credential build

getEncodedCertificate

protected abstract byte[] getEncodedCertificate(String certConfigContent)
Extracts the certificate bytes from the content of a Certificate configuration element.

Parameters:
certConfigContent - content of a Certificate configuration element
Returns:
certificate bytes

parseCRLs

protected void parseCRLs(Map<QName,List<Element>> configChildren,
                         BeanDefinitionBuilder builder)
Parses the CRLs from the credential configuration.

Parameters:
configChildren - children of the credential element
builder - credential build

getEncodedCRL

protected abstract byte[] getEncodedCRL(String certCRLContent)
Extracts the CRL(s) bytes from the content of a CRL configuration element.

Parameters:
certCRLContent - content of a CRL configuration element
Returns:
CRL bytes


Copyright © 2006-2010 Internet2. All Rights Reserved.