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

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.AbstractBasicCredentialBeanDefinitionParser
                  extended by edu.internet2.middleware.shibboleth.common.config.security.InlineBasicCredentialBeanDefinitionParser
All Implemented Interfaces:
BeanDefinitionParser

public class InlineBasicCredentialBeanDefinitionParser
extends AbstractBasicCredentialBeanDefinitionParser

Spring bean definition parser for inline credential configuration elements.


Field Summary
static QName SCHEMA_TYPE
          Schema type.
 
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE
 
Constructor Summary
InlineBasicCredentialBeanDefinitionParser()
           
 
Method Summary
protected  byte[] getEncodedPrivateKey(String keyConfigContent)
          Extracts the private key bytes from the content of the PrivateKey configuration element.
protected  byte[] getEncodedPublicKey(String keyConfigContent)
          Extracts the public key bytes from the content of the PublicKey configuration element.
protected  byte[] getEncodedSecretKey(String keyConfigContent)
          Extracts the secret key bytes from the content of the SecretKey configuration element.
 
Methods inherited from class edu.internet2.middleware.shibboleth.common.config.security.AbstractBasicCredentialBeanDefinitionParser
doParse, getBeanClass, parsePublicKey, parseSecretKey, resolveId
 
Methods inherited from class edu.internet2.middleware.shibboleth.common.config.security.AbstractCredentialBeanDefinitionParser
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
 

Field Detail

SCHEMA_TYPE

public static final QName SCHEMA_TYPE
Schema type.

Constructor Detail

InlineBasicCredentialBeanDefinitionParser

public InlineBasicCredentialBeanDefinitionParser()
Method Detail

getEncodedPublicKey

protected byte[] getEncodedPublicKey(String keyConfigContent)
Extracts the public key bytes from the content of the PublicKey configuration element.

Specified by:
getEncodedPublicKey in class AbstractBasicCredentialBeanDefinitionParser
Parameters:
keyConfigContent - content of the PublicKey configuration element
Returns:
private key bytes

getEncodedPrivateKey

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

Specified by:
getEncodedPrivateKey in class AbstractCredentialBeanDefinitionParser
Parameters:
keyConfigContent - content of the Private configuration element
Returns:
private key bytes

getEncodedSecretKey

protected byte[] getEncodedSecretKey(String keyConfigContent)
Extracts the secret key bytes from the content of the SecretKey configuration element.

Specified by:
getEncodedSecretKey in class AbstractBasicCredentialBeanDefinitionParser
Parameters:
keyConfigContent - content of the SecretKey configuration element
Returns:
secret key bytes


Copyright © 2006-2009 Internet2. All Rights Reserved.