Interface ADsProvider
public interface ADsProvider
{
// Fields
public static final long ADSI_DEFAULT_AUTHENTICATION;
public static final long ADSI_USE_ENCRYPTION;
public static final long ADSI_USE_SECURE_AUTHENTICATION;
// Methods
public IADsNamespace getNamespace();
public IADs getObject(String ADsPath) throws IADsException;
public IADs getObject( String ADsPath, String userName,
String passWord, long controlCode ) throws IADsException;
public void setConfigFile(INIFileParser config);
}
This is the base interface for all directory object providers. Each provide must implements this interface.
Methods
public IADsNamespace getNamespace();
Returns the namespace object of this provider.
Return Value
Returns namespace object of the provider
public IADs getObject(String ADsPath) throws IADsException;
Returns Active Direcotry object binding.
| Parameter | Description |
| path | ADsPath of the requested object
|
Exceptions
IADsException
failed to get object
public IADs getObject( String ADsPath, String userName,
String passWord, long controlCode ) throws IADsException;
Returns Active Direcotry object binding.
| Parameter | Description |
| path | ADsPath of the requested object
|
| userName, | the name of the user (ex cn=John,cn=users,dc=foo,dc=bar)
|
| passWord, | the passWord of the user.
|
| controlCode, | indicates authentication mechanism to use.
|
Exceptions
IADsException
failed to get object
public void setConfigFile(INIFileParser config);
Sets the configuration file.
| Parameter | Description |
| configuration | file
|
Fields
- ADSI_DEFAULT_AUTHENTICATION
- Constant to use for default, usually clear text authentication
- ADSI_USE_ENCRYPTION
- Constant to use for encrypted authentication
- ADSI_USE_SECURE_AUTHENTICATION
- Constant to use for secure authentication.