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

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.StoredIDDataConnectorBeanFactory
All Implemented Interfaces:
BeanClassLoaderAware, BeanFactoryAware, DisposableBean, FactoryBean, InitializingBean

public class StoredIDDataConnectorBeanFactory
extends BaseDataConnectorFactoryBean

Spring factory bean for StoredIDDataConnectors.


Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
StoredIDDataConnectorBeanFactory()
           
 
Method Summary
protected  Object createInstance()
          
 DataSource getDatasource()
          Gets the datasource used to communicate with database.
 String getGeneratedAttribute()
          Gets the ID of the attribute generated by the connector.
 Class getObjectType()
          
 long getQueryTimeout()
          Gets the timeout, in milliseconds, of the SQL query.
 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 setDatasource(DataSource source)
          Sets the datasource used to communicate with database.
 void setGeneratedAttribute(String id)
          Sets the ID of the attribute generated by the connector.
 void setQueryTimeout(long timeout)
          Sets the timeout, in milliseconds, of the SQL query.
 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
 

Constructor Detail

StoredIDDataConnectorBeanFactory

public StoredIDDataConnectorBeanFactory()
Method Detail

getObjectType

public Class getObjectType()

Specified by:
getObjectType in interface FactoryBean
Specified by:
getObjectType in class AbstractFactoryBean

getDatasource

public DataSource getDatasource()
Gets the datasource used to communicate with database.

Returns:
datasource used to communicate with database

setDatasource

public void setDatasource(DataSource source)
Sets the datasource used to communicate with database.

Parameters:
source - datasource used to communicate with database

getQueryTimeout

public long getQueryTimeout()
Gets the timeout, in milliseconds, of the SQL query.

Returns:
timeout, in milliseconds, of the SQL query.

setQueryTimeout

public void setQueryTimeout(long timeout)
Sets the timeout, in milliseconds, of the SQL query.

Parameters:
timeout - timeout, in milliseconds, of the SQL query.

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 AbstractFactoryBean
Throws:
Exception


Copyright © 2006-2010 Internet2. All Rights Reserved.