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

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
All Implemented Interfaces:
BeanDefinitionParser
Direct Known Subclasses:
AbstractBasicCredentialBeanDefinitionParser, AbstractX509CredentialBeanDefinitionParser

public abstract class AbstractCredentialBeanDefinitionParser
extends AbstractSingleBeanDefinitionParser

Base class for credential beans.


Field Summary
 
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE
 
Constructor Summary
AbstractCredentialBeanDefinitionParser()
           
 
Method Summary
protected abstract  byte[] getEncodedPrivateKey(String keyConfigContent)
          Extracts the private key bytes from the content of the PrivateKey configuration element.
protected  void parseAttributes(Element element, BeanDefinitionBuilder builder)
          Parse the credential element attributes.
protected  void parseCommon(Map<QName,List<Element>> configChildren, BeanDefinitionBuilder builder)
          Parses the common elements from the credential configuration.
protected  void parseKeyNames(Map<QName,List<Element>> configChildren, BeanDefinitionBuilder builder)
          Parses the key names from the credential configuration.
protected  void parsePrivateKey(Map<QName,List<Element>> configChildren, BeanDefinitionBuilder builder)
          Parses the private key from the credential configuration.
protected  String resolveId(Element element, AbstractBeanDefinition definition, ParserContext parserContext)
          
 
Methods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
doParse, doParse, getBeanClass, 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

AbstractCredentialBeanDefinitionParser

public AbstractCredentialBeanDefinitionParser()
Method Detail

resolveId

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

Overrides:
resolveId in class AbstractBeanDefinitionParser

parseAttributes

protected void parseAttributes(Element element,
                               BeanDefinitionBuilder builder)
Parse the credential element attributes.

Parameters:
element - credential element
builder - bean definition builder

parseCommon

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

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

parseKeyNames

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

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

parsePrivateKey

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

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

getEncodedPrivateKey

protected abstract byte[] getEncodedPrivateKey(String keyConfigContent)
Extracts the private key bytes from the content of the PrivateKey configuration element.

Parameters:
keyConfigContent - content of the Private configuration element
Returns:
private key bytes


Copyright © 2006-2010 Internet2. All Rights Reserved.