Spring Security Framework

org.springframework.security.ldap
Interface InitialDirContextFactory

All Known Implementing Classes:
DefaultInitialDirContextFactory

Deprecated. Use SpringSecurityContextSource instead

public interface InitialDirContextFactory

Access point for obtaining LDAP contexts.

Version:
$Id$
Author:
Luke Taylor
See Also:
DefaultInitialDirContextFactory

Method Summary
 String getRootDn()
          Deprecated. Returns the root DN of the contexts supplied by this factory.
 DirContext newInitialDirContext()
          Deprecated. Provides an initial context without specific user information.
 DirContext newInitialDirContext(String userDn, String password)
          Deprecated. Provides an initial context by binding as a specific user.
 

Method Detail

getRootDn

String getRootDn()
Deprecated. 
Returns the root DN of the contexts supplied by this factory. The names for searches etc. which are performed against contexts returned by this factory should be relative to the root DN.

Returns:
The DN of the contexts returned by this factory.

newInitialDirContext

DirContext newInitialDirContext()
Deprecated. 
Provides an initial context without specific user information.

Returns:
An initial context for the LDAP directory

newInitialDirContext

DirContext newInitialDirContext(String userDn,
                                String password)
Deprecated. 
Provides an initial context by binding as a specific user.

Parameters:
userDn - the user to authenticate as when obtaining the context.
password - the user's password.
Returns:
An initial context for the LDAP directory

Spring Security Framework

Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.