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.String
COMPONENT_NAME
static java.lang.String
DEFAULT_DOMAIN
static java.lang.String
PARAM_CONFIG_URL
static java.lang.String
PARAM_DELETE_REG
static java.lang.String
PARAM_DOMAIN
static java.lang.String
PARAM_ENTRY_TYPE
static java.lang.String
PARAM_FILTER
static java.lang.String
PARAM_IMPORT_CREATE
static java.lang.String
PARAM_PASSWORD
static java.lang.String
PARAM_PROG_NAME
static java.lang.String
PARAM_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 void
deleteEntry(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.void
deleteEntry(SearchCriteria searchcriteria)
Deletes the entry determined by the SearchCriteria if it existsEntry
findEntry(SearchCriteria searchcriteria)
Using the provided search criteria and based on the configured Entry Type, attempts to find the object in TAM.Entry
getNextEntry()
Using the list of the configured Entry Type, returns the next available entry on the list.java.lang.String
getVersion()
Returns current version of the Connector.void
initialize(java.lang.Object arg0)
This method is called once to initialize all the required internal members.void
modEntry(Entry changes, SearchCriteria searchcriteria)
Using the provided changes and based on the configured Entry Type, attempts to modify the specified object in TAM.void
modEntry(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.void
putEntry(Entry entry)
Using the provided entry and based on the configured Entry Type, attempts to create the specified object in TAM.java.lang.Object
querySchema(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.Vector
queryTAMDomains()
Used to query TAM for the set of configured Domains.void
selectEntries()
Prepares a list of the required Entry Type to iterate over.void
setImportReg(boolean importReg)
Available for use by TDI Assembly Line.void
terminate()
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 TAMConnectorException
This method is called once to initialize all the required internal members.- Specified by:
initialize
in interfaceConnectorInterface
- Overrides:
initialize
in 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.Exception
Shuts down the Connection to the TAM Server using PDAdmin.shutdown().- Specified by:
terminate
in interfaceConnectorInterface
- Overrides:
terminate
in classConnector
- Throws:
java.lang.Exception
- When an unrecoverable error occurs.
-
selectEntries
public void selectEntries() throws TAMConnectorException
Prepares a list of the required Entry Type to iterate over.- Specified by:
selectEntries
in interfaceConnectorInterface
- Overrides:
selectEntries
in 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:
getNextEntry
in interfaceConnectorInterface
- Overrides:
getNextEntry
in 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:
findEntry
in interfaceConnectorInterface
- Overrides:
findEntry
in 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:
putEntry
in interfaceConnectorInterface
- Overrides:
putEntry
in 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:
modEntry
in interfaceConnectorInterface
- Overrides:
modEntry
in 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:
modEntry
in interfaceConnectorInterface
- Overrides:
modEntry
in 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:
deleteEntry
in interfaceConnectorInterface
- Overrides:
deleteEntry
in 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 TAMConnectorException
Based on the configured Entry Type returns a list of TDI entries that define the schema for attribute mapping.- Specified by:
querySchema
in interfaceConnectorInterface
- Overrides:
querySchema
in 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:
getVersion
in interfaceVersionInfoInterface
- Returns:
- String representation of Connector's current version.
-
queryTAMDomains
public java.util.Vector queryTAMDomains() throws TAMConnectorException
Used to query TAM for the set of configured Domains.- Returns:
- Vector of PDDomain objects.
- Throws:
TAMConnectorException
- When an unrecoverable error occurs.
-
-