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:
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 StoredIDDataConnectorBeanFactory
extends BaseDataConnectorFactoryBean

Spring factory bean for StoredIDDataConnectors.


Field Summary
private  DataSource datasource
          Datasource used to communicate with database.
private  String generatedAttribute
          ID of the attribute generated by the connector.
private  long queryTimeout
          SQL query timeout in milliseconds.
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
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
 

Field Detail

datasource

private DataSource datasource
Datasource used to communicate with database.


queryTimeout

private long queryTimeout
SQL query timeout in milliseconds.


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

StoredIDDataConnectorBeanFactory

public StoredIDDataConnectorBeanFactory()
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

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 org.springframework.beans.factory.config.AbstractFactoryBean
Throws:
Exception


Copyright © 1999-2012. All Rights Reserved.