Package com.crystaldecisions.sdk.plugin.authentication.enterprise

This package allows you to configure the settings for users who log on to the system with the secEnterprise authentication method.

See:
          Description

Interface Summary
IsecEnterprise Use this interface to set global security options for native Enterprise user accounts.
IsecEnterpriseBase Use this interface to set global security options for native Enterprise user accounts.
 

Package com.crystaldecisions.sdk.plugin.authentication.enterprise Description

This package allows you to configure the settings for users who log on to the system with the secEnterprise authentication method. For example, with this plugin, you can specify the password settings for native Enterprise user accounts. The various settings that are provided by the plugin apply only to Enterprise accounts--that is, they do not apply to accounts that you have mapped to an external user database (Windows NT or LDAP). Generally, however, your external system will enable you to set similar options for the external accounts.

Retrieving an authentication plugin

Unlike the desktop plugins, the authentication plugins are static, and objects cannot be created from them. It follows that since no instances of the plugin exist, you must retrieve the plugin itself. Each type of authentication plugin in Crystal Enterprise is represented by an InfoObject. These objects are stored in the CI_SYSTEMOBJECTS category in the APS InfoStore, and must be retrieved using the SI_NAME property.

Example

The following example retrieves the secEnterprise authentication plugin:

IInfoObjects authObjs = iStore.query( "SELECT TOP 1* FROM CI_SYSTEMOBJECTS WHERE SI_NAME='secEnterprise'");

The query method returns a collection of InfoObjects, which in this case contains the secEnterprise plugin object. Like other InfoObjects, this object is uniquely represented by its ID property. You can also access general InfoObject properties, such as the SI_NAME property, SI_DESCRIPTION property, and SI_ID property.

To access the IsecEnterprise objects returned by the query, the resulting IInfoObjects need to be cast. This example demonstrates how to cast the returned IInfoObjects as IsecEnterprise objects:

for (int i = 0; i < authObjs.size(); i++)
{
        IInfoObject obj = (IInfoObject) authObjs.get(i);
        IsecEnterprise enterpriseAuth = (IsecEnterprise) obj;
}