Class 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.

    • Constructor Detail

      • TAMConnector

        public TAMConnector()
        Default Constructor
    • Method Detail

      • 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 interface ConnectorInterface
        Overrides:
        terminate in class Connector
        Throws:
        java.lang.Exception - When an unrecoverable error occurs.
      • 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 interface ConnectorInterface
        Overrides:
        findEntry in class Connector
        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 interface ConnectorInterface
        Overrides:
        putEntry in class Connector
        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 interface ConnectorInterface
        Overrides:
        modEntry in class Connector
        Parameters:
        changes - The entry data
        searchcriteria - The search criteria used to locate the entry to be modified
        old - 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 interface ConnectorInterface
        Overrides:
        modEntry in class Connector
        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​(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 interface ConnectorInterface
        Overrides:
        querySchema in class Connector
        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 interface VersionInfoInterface
        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.