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

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.AbstractPKIXValidationInformationBeanDefinitionParser
All Implemented Interfaces:
org.springframework.beans.factory.xml.BeanDefinitionParser
Direct Known Subclasses:
FilesystemPKIXValidationInformationBeanDefinitionParser, InlinePKIXValidationInformationBeanDefinitionParser

public abstract class AbstractPKIXValidationInformationBeanDefinitionParser
extends org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser

Base class for PKIXValidationInformation beans.


Field Summary
private  org.slf4j.Logger log
          Class logger.
 
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE
 
Constructor Summary
AbstractPKIXValidationInformationBeanDefinitionParser()
           
 
Method Summary
protected  void doParse(Element element, org.springframework.beans.factory.support.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, org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
          Parses the certificates from the validation info configuration.
protected  void parseCRLs(Map<QName,List<Element>> configChildren, org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
          Parses the CRLs from the validation info configuration.
protected  String resolveId(Element element, org.springframework.beans.factory.support.AbstractBeanDefinition definition, org.springframework.beans.factory.xml.ParserContext parserContext)
          
 
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
 

Field Detail

log

private final org.slf4j.Logger log
Class logger.

Constructor Detail

AbstractPKIXValidationInformationBeanDefinitionParser

public AbstractPKIXValidationInformationBeanDefinitionParser()
Method Detail

getBeanClass

protected Class getBeanClass(Element element)

Overrides:
getBeanClass in class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser

resolveId

protected String resolveId(Element element,
                           org.springframework.beans.factory.support.AbstractBeanDefinition definition,
                           org.springframework.beans.factory.xml.ParserContext parserContext)

Overrides:
resolveId in class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser

doParse

protected void doParse(Element element,
                       org.springframework.beans.factory.support.BeanDefinitionBuilder builder)

Overrides:
doParse in class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser

parseCertificates

protected void parseCertificates(Map<QName,List<Element>> configChildren,
                                 org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
Parses the certificates from the validation info configuration.

Parameters:
configChildren - children of the validation set element
builder - validation set 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,
                         org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
Parses the CRLs from the validation info configuration.

Parameters:
configChildren - children of the validation info element
builder - validation info 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 © 1999-2012. All Rights Reserved.