edu.internet2.middleware.shibboleth.common.config.attribute.resolver.dataConnector
Class ComputedIDDataConnectorFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean
      extended by edu.internet2.middleware.shibboleth.common.config.attribute.resolver.AbstractResolutionPluginFactoryBean
          extended by edu.internet2.middleware.shibboleth.common.config.attribute.resolver.dataConnector.BaseDataConnectorFactoryBean
              extended by edu.internet2.middleware.shibboleth.common.config.attribute.resolver.dataConnector.ComputedIDDataConnectorFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class ComputedIDDataConnectorFactoryBean
extends BaseDataConnectorFactoryBean

Spring factory bean for ComputedIDDataConnectors.


Field Summary
private  String generatedAttribute
          ID of the attribute generated by the connector.
private  byte[] salt
          Salt used when computing the ID.
private  String sourceAttribute
          ID of the attribute whose first value is used when generating the computed ID.
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
ComputedIDDataConnectorFactoryBean()
           
 
Method Summary
protected  Object createInstance()
          
 String getGeneratedAttribute()
          Gets the ID of the attribute generated by the connector.
 Class getObjectType()
          
 byte[] getSalt()
          Gets the salt used when computing the ID.
 String getSourceAttribute()
          Gets the ID of the attribute whose first value is used when generating the computed ID.
 void setGeneratedAttribute(String id)
          Sets the ID of the attribute generated by the connector.
 void setSalt(byte[] salt)
          Sets the salt used when computing the ID.
 void setSourceAttribute(String id)
          Sets the ID of the attribute whose first value is used when generating the computed ID.
 
Methods inherited from class edu.internet2.middleware.shibboleth.common.config.attribute.resolver.dataConnector.BaseDataConnectorFactoryBean
getFailoverDataConnectorId, populateDataConnector, setFailoverDataConnectorIds
 
Methods inherited from class edu.internet2.middleware.shibboleth.common.config.attribute.resolver.AbstractResolutionPluginFactoryBean
getDependencyIds, getPluginId, setDependencyIds, setPluginId
 
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

generatedAttribute

private String generatedAttribute
ID of the attribute generated by the connector.


sourceAttribute

private String sourceAttribute
ID of the attribute whose first value is used when generating the computed ID.


salt

private byte[] salt
Salt used when computing the ID.

Constructor Detail

ComputedIDDataConnectorFactoryBean

public ComputedIDDataConnectorFactoryBean()
Method Detail

getObjectType

public Class getObjectType()

Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean
Specified by:
getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean

getGeneratedAttribute

public String getGeneratedAttribute()
Gets the ID of the attribute generated by the connector.

Returns:
ID of the attribute generated by the connector

setGeneratedAttribute

public void setGeneratedAttribute(String id)
Sets the ID of the attribute generated by the connector.

Parameters:
id - ID of the attribute generated by the connector

getSourceAttribute

public String getSourceAttribute()
Gets the ID of the attribute whose first value is used when generating the computed ID.

Returns:
ID of the attribute whose first value is used when generating the computed ID

setSourceAttribute

public void setSourceAttribute(String id)
Sets the ID of the attribute whose first value is used when generating the computed ID.

Parameters:
id - ID of the attribute whose first value is used when generating the computed ID

getSalt

public byte[] getSalt()
Gets the salt used when computing the ID.

Returns:
salt used when computing the ID

setSalt

public void setSalt(byte[] salt)
Sets the salt used when computing the ID.

Parameters:
salt - salt used when computing the ID

createInstance

protected Object createInstance()
                         throws Exception

Specified by:
createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean
Throws:
Exception


Copyright © 1999-2012. All Rights Reserved.