|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.nim.NiMKernelService
com.nitido.nim.DataControlService
com.nitido.nimx.services.datacontrol.profilemap.DataControlServiceImpl
public class DataControlServiceImpl
This implementation of DataControlService is a factory for profile-mapping DataControls.
Main Features
Depending on the configuration, this implementation generates the LDAP login DN in the following steps:
Configuration Settings
This service requires the following configurations:
Field Summary | |
---|---|
static java.lang.String |
CONF_KEY_ATTRIBUTEMAP_PASSWORD
The user password attribute key. |
static java.lang.String |
CONF_KEY_HOST
Configuration key for the directory host name |
static java.lang.String |
CONF_KEY_PORT
Configuration key for the directory port number |
static java.lang.String |
CONF_KEY_PREFIX_ATTRIBUTEMAP
The configuration key prefix for the mapping settings from a user space key to a LDAP attribute name. |
static java.lang.String |
CONF_KEY_PREFIX_BIND_AS_DN
The configuration key for the bind-as DN. |
static java.lang.String |
CONF_KEY_PREFIX_BIND_AS_PWD
The configuration key for the bind-as password. |
static java.lang.String |
CONF_KEY_PREFIX_DN_POSTFIX
The configuration key prefix for an Entity's DN postfix for the specific credential type. |
static java.lang.String |
CONF_KEY_PREFIX_DN_PREFIX
The configuration key prefix for an Entity's DN prefix. |
static java.lang.String |
CONF_KEY_PREFIX_DN_TOKEN_KEY
The configuration key postfix for an Entity's DN token key. |
static int |
LEN_CONF_KEY_PREFIX_ATTRIBUTEMAP
The string length of the configuration key prefix "com.nitido.nimx.services.datacontrol.profilemap.attributemap.". |
static java.lang.String |
USER_SPACE_KEY_PASSWORD
The constant for the user space key "password". |
Fields inherited from interface com.nitido.nim.CredentialConstants |
---|
CRED_ADMIN, CRED_CONTAINER, CRED_HELPDESK, CRED_SYSTEM, CRED_USER, KEY_PASSWORD |
Constructor Summary | |
---|---|
DataControlServiceImpl(NiMKernelServiceVisa visa)
This class constructor is used by NiMKernel to instantiate a new DataControlService. |
Method Summary | |
---|---|
protected com.nitido.nimx.services.datacontrol.profilemap.BindData |
credentialToBindData(Credential cred)
|
protected java.lang.String |
credentialToUserDN(Credential cred)
This method is invoked by the DataControl object to obtain the DN for the specified credential. |
DataControl |
getDataControl(Credential credential)
This method is a factory method for DataControl objects. |
protected static DataControlServiceImpl |
getInstance()
|
protected java.lang.String |
getMappedKey(java.lang.String userSpaceKey)
|
protected java.util.Set |
getUserSpaceKeysThatAreMapped(java.lang.String startsWith)
|
protected void |
init(NiMKernel kernel,
ConfigurationService confService)
This method is used by the kernel to initialize the DataControlService. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONF_KEY_HOST
public static final java.lang.String CONF_KEY_PORT
public static final java.lang.String CONF_KEY_PREFIX_DN_TOKEN_KEY
public static final java.lang.String CONF_KEY_PREFIX_DN_PREFIX
public static final java.lang.String CONF_KEY_PREFIX_DN_POSTFIX
public static final java.lang.String CONF_KEY_PREFIX_BIND_AS_DN
public static final java.lang.String CONF_KEY_PREFIX_BIND_AS_PWD
public static final java.lang.String CONF_KEY_PREFIX_ATTRIBUTEMAP
public static final int LEN_CONF_KEY_PREFIX_ATTRIBUTEMAP
public static final java.lang.String USER_SPACE_KEY_PASSWORD
public static final java.lang.String CONF_KEY_ATTRIBUTEMAP_PASSWORD
Constructor Detail |
---|
public DataControlServiceImpl(NiMKernelServiceVisa visa)
visa
- Reference to the NiMKernelServiceVisa object required to
instantiate the service. This parameter is required to
ensure that only the NiMkernel can instantiate a reference
to this service.Method Detail |
---|
protected static DataControlServiceImpl getInstance()
protected void init(NiMKernel kernel, ConfigurationService confService) throws InitializationFailedException, NiMException
init
in class DataControlService
kernel
- Reference to the kernel that instantiated this service.confService
- A reference to the ConfigurationService.
InitializationFailedException
- If unable to initialize the DataControlService. This
exception is thrown by this service implementation if any of
the expected settings are not available.
NiMException
- This exception is never thrown by this service implementationpublic DataControl getDataControl(Credential credential) throws IllegalCredentialException, DataControlException
DataControlService
getDataControl
in class DataControlService
credential
- The credential used by the DataControl to access the
back-end data.
IllegalCredentialException
- If the given credential is not valid.
DataControlException
- If the DataControl service is unable to establish a
connection with the back-end data services.protected java.lang.String credentialToUserDN(Credential cred) throws IllegalCredentialException
IllegalCredentialException
protected com.nitido.nimx.services.datacontrol.profilemap.BindData credentialToBindData(Credential cred) throws IllegalCredentialException
IllegalCredentialException
protected java.lang.String getMappedKey(java.lang.String userSpaceKey)
protected java.util.Set getUserSpaceKeysThatAreMapped(java.lang.String startsWith)
|
Nitido NiM 2.5 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.