Class TAMConnector
- java.lang.Object
-
- com.ibm.di.connector.Connector
-
- com.ibm.di.connector.tam.TAMConnector
-
- All Implemented Interfaces:
ConnectorInterface,VersionInfoInterface
public class TAMConnector extends Connector implements ConnectorInterface
The TAM Connector.
The connector enables external applications, using TDI, to access IBM Tivoli Access Manager (TAM) It supports the following TDI ConnectorModes: Iterator AddOnly Update Delete Lookup The connector supports design time schema query via
querySchema(java.lang.Object).The configuration parameters of the connector are described below. TAM ID
TAM Administrative ID.
TAM Password
Password for TAM Administrative logon ID.
Domain
The TAM Domain.
TAM Program Name
TAM Program Name specified in the SvrSslCfg configuration utility.
�TAM Configuration File
TAM Configuration File created by the SvrSslCfg configuration utility.
Entry Type
Specifies the object type to work with. The supported types are: User Group Policy SSO Credential SSO Resource SSO Resource Group
Import Users or Groups from Registry
If checked, Users or Groups will be imported from the registry.
Import Users or Groups from Registry
If checked, Users or Groups/Domains will be imported from the registry.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOMPONENT_NAMEstatic java.lang.StringDEFAULT_DOMAINstatic java.lang.StringPARAM_CONFIG_URLstatic java.lang.StringPARAM_DELETE_REGstatic java.lang.StringPARAM_DOMAINstatic java.lang.StringPARAM_ENTRY_TYPEstatic java.lang.StringPARAM_FILTERstatic java.lang.StringPARAM_IMPORT_CREATEstatic java.lang.StringPARAM_PASSWORDstatic java.lang.StringPARAM_PROG_NAMEstatic java.lang.StringPARAM_USER_NAME-
Fields inherited from class com.ibm.di.connector.Connector
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER
-
-
Constructor Summary
Constructors Constructor Description TAMConnector()Default Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteEntry(Entry entry, SearchCriteria searchcriteria)The old Entry is now redundant so shoehorn the original deleteEntry into the new code which just uses searchcriteria with no loss of functionality.voiddeleteEntry(SearchCriteria searchcriteria)Deletes the entry determined by the SearchCriteria if it existsEntryfindEntry(SearchCriteria searchcriteria)Using the provided search criteria and based on the configured Entry Type, attempts to find the object in TAM.EntrygetNextEntry()Using the list of the configured Entry Type, returns the next available entry on the list.java.lang.StringgetVersion()Returns current version of the Connector.voidinitialize(java.lang.Object arg0)This method is called once to initialize all the required internal members.voidmodEntry(Entry changes, SearchCriteria searchcriteria)Using the provided changes and based on the configured Entry Type, attempts to modify the specified object in TAM.voidmodEntry(Entry changes, SearchCriteria searchcriteria, Entry old)The old Entry is now redundant so shoehorn the original modEntry into the new code which just uses searchcriteria with no loss of functionality.voidputEntry(Entry entry)Using the provided entry and based on the configured Entry Type, attempts to create the specified object in TAM.java.lang.ObjectquerySchema(java.lang.Object obj)Based on the configured Entry Type returns a list of TDI entries that define the schema for attribute mapping.java.util.VectorqueryTAMDomains()Used to query TAM for the set of configured Domains.voidselectEntries()Prepares a list of the required Entry Type to iterate over.voidsetImportReg(boolean importReg)Available for use by TDI Assembly Line.voidterminate()Shuts down the Connection to the TAM Server using PDAdmin.shutdown().-
Methods inherited from class com.ibm.di.connector.Connector
addFindEntry, allModes, clearFindEntries, debug, debugMode, extractExceptionInformation, findEntry, getBoolean, getClassInstance, getConfiguration, getContext, getFindEntryCount, getFirstFindEntry, getLog, getMaxDuplicateEntries, getModes, getModes, getName, getNextClient, getNextFindEntry, getParam, getParser, getProperty, getPushbackEntry, getRawConnectorConfiguration, getRSInterface, getUI, hasConfigValue, hasParser, initParser, isDeltaSupported, isExceptionFatal, isIOException, logError, logmsg, pushback, queryOperations, queryReply, queryTables, reconnect, reconnect, registerScriptBeans, replyEntry, setConfiguration, setContext, setCurrent, setDebugMode, setLog, setMaxDuplicateEntries, setModes, setModes, setName, setParam, setParser, setProperty, setRSInterface, terminateServer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.di.connector.ConnectorInterface
getConfiguration, getContext, getFindEntryCount, getFirstFindEntry, getMaxDuplicateEntries, getName, getNextClient, getNextFindEntry, getParam, getPushbackEntry, getRawConnectorConfiguration, isDeltaSupported, isExceptionFatal, isIOException, pushback, queryOperations, queryReply, reconnect, registerScriptBeans, replyEntry, setConfiguration, setContext, setCurrent, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface, terminateServer
-
-
-
-
Field Detail
-
COMPONENT_NAME
public static final java.lang.String COMPONENT_NAME
- See Also:
- Constant Field Values
-
PARAM_PROG_NAME
public static final java.lang.String PARAM_PROG_NAME
- See Also:
- Constant Field Values
-
PARAM_DOMAIN
public static final java.lang.String PARAM_DOMAIN
- See Also:
- Constant Field Values
-
PARAM_USER_NAME
public static final java.lang.String PARAM_USER_NAME
- See Also:
- Constant Field Values
-
PARAM_PASSWORD
public static final java.lang.String PARAM_PASSWORD
- See Also:
- Constant Field Values
-
PARAM_ENTRY_TYPE
public static final java.lang.String PARAM_ENTRY_TYPE
- See Also:
- Constant Field Values
-
PARAM_FILTER
public static final java.lang.String PARAM_FILTER
- See Also:
- Constant Field Values
-
PARAM_CONFIG_URL
public static final java.lang.String PARAM_CONFIG_URL
- See Also:
- Constant Field Values
-
PARAM_IMPORT_CREATE
public static final java.lang.String PARAM_IMPORT_CREATE
- See Also:
- Constant Field Values
-
PARAM_DELETE_REG
public static final java.lang.String PARAM_DELETE_REG
- See Also:
- Constant Field Values
-
DEFAULT_DOMAIN
public static final java.lang.String DEFAULT_DOMAIN
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(java.lang.Object arg0) throws TAMConnectorExceptionThis method is called once to initialize all the required internal members.- Specified by:
initializein interfaceConnectorInterface- Overrides:
initializein classConnector- Parameters:
arg0- TDI config object. Not used.- Throws:
TAMConnectorException- When an unrecoverable error occurs.
-
setImportReg
public void setImportReg(boolean importReg)
Available for use by TDI Assembly Line.- Parameters:
importReg- true for IMPORT, false for CREATE
-
terminate
public void terminate() throws java.lang.ExceptionShuts down the Connection to the TAM Server using PDAdmin.shutdown().- Specified by:
terminatein interfaceConnectorInterface- Overrides:
terminatein classConnector- Throws:
java.lang.Exception- When an unrecoverable error occurs.
-
selectEntries
public void selectEntries() throws TAMConnectorExceptionPrepares a list of the required Entry Type to iterate over.- Specified by:
selectEntriesin interfaceConnectorInterface- Overrides:
selectEntriesin classConnector- Throws:
TAMConnectorException- When an unrecoverable error occurs.
-
getNextEntry
public Entry getNextEntry() throws TAMConnectorException
Using the list of the configured Entry Type, returns the next available entry on the list. When either the end of the list has been passed, or the list is empty, returns NULL.- Specified by:
getNextEntryin interfaceConnectorInterface- Overrides:
getNextEntryin classConnector- Returns:
- The next available entry, or NULL.
- Throws:
TAMConnectorException- When an unrecoverable error occurs.- See Also:
ConnectorInterface.selectEntries()
-
findEntry
public Entry findEntry(SearchCriteria searchcriteria) throws TAMConnectorException
Using the provided search criteria and based on the configured Entry Type, attempts to find the object in TAM. If no object can be found the returns NULL.- Specified by:
findEntryin interfaceConnectorInterface- Overrides:
findEntryin classConnector- Parameters:
searchcriteria- - Provides details of the attribute to search with and the search operand.- Returns:
- An entry representing the TAM object, else NULL.
- Throws:
TAMConnectorException- When an unrecoverable error occurs.
-
putEntry
public void putEntry(Entry entry) throws TAMConnectorException
Using the provided entry and based on the configured Entry Type, attempts to create the specified object in TAM.- Specified by:
putEntryin interfaceConnectorInterface- Overrides:
putEntryin classConnector- Parameters:
entry- - A TDI Entry containing the attributes and values to use when creating the required object, of the required Entry Type in TAM.- Throws:
TAMConnectorException- When an unrecoverable error occurs.
-
modEntry
public void modEntry(Entry changes, SearchCriteria searchcriteria, Entry old) throws TAMConnectorException
The old Entry is now redundant so shoehorn the original modEntry into the new code which just uses searchcriteria with no loss of functionality.- Specified by:
modEntryin interfaceConnectorInterface- Overrides:
modEntryin classConnector- Parameters:
changes- The entry datasearchcriteria- The search criteria used to locate the entry to be modifiedold- The old entry found by the search criteria- Throws:
TAMConnectorException
-
modEntry
public void modEntry(Entry changes, SearchCriteria searchcriteria) throws TAMConnectorException
Using the provided changes and based on the configured Entry Type, attempts to modify the specified object in TAM. It does this with only one instance of the underlying PDObject rather than relying on the Locate() to already have provided an initial instance of the object.- Specified by:
modEntryin interfaceConnectorInterface- Overrides:
modEntryin classConnector- Parameters:
changes- - A TDI Entry containing the attributes and values to use when modifying the required object, of the required Entry Type in TAM.searchcriteria- -- Throws:
TAMConnectorException- When an unrecoverable error occurs.
-
deleteEntry
public void deleteEntry(Entry entry, SearchCriteria searchcriteria) throws TAMConnectorException
The old Entry is now redundant so shoehorn the original deleteEntry into the new code which just uses searchcriteria with no loss of functionality.- Specified by:
deleteEntryin interfaceConnectorInterface- Overrides:
deleteEntryin classConnector- Parameters:
entry- The entry datasearchcriteria- The search criteria used to locate the entry to be deleted- Throws:
TAMConnectorException
-
deleteEntry
public void deleteEntry(SearchCriteria searchcriteria) throws TAMConnectorException
Deletes the entry determined by the SearchCriteria if it exists- Parameters:
searchcriteria- - Used to provide the unique key to access the PDObject- Throws:
TAMConnectorException- When an unrecoverable error occurs.
-
querySchema
public java.lang.Object querySchema(java.lang.Object obj) throws TAMConnectorExceptionBased on the configured Entry Type returns a list of TDI entries that define the schema for attribute mapping.- Specified by:
querySchemain interfaceConnectorInterface- Overrides:
querySchemain classConnector- Parameters:
obj- - Not used.- Returns:
- Vector of TDI Entries that represent the attribute mapping schema.
- Throws:
TAMConnectorException- When an unrecoverable error occurs.- See Also:
Entry,Vector
-
getVersion
public java.lang.String getVersion()
Returns current version of the Connector.- Specified by:
getVersionin interfaceVersionInfoInterface- Returns:
- String representation of Connector's current version.
-
queryTAMDomains
public java.util.Vector queryTAMDomains() throws TAMConnectorExceptionUsed to query TAM for the set of configured Domains.- Returns:
- Vector of PDDomain objects.
- Throws:
TAMConnectorException- When an unrecoverable error occurs.
-
-