public interface InitialDirContextFactory
DefaultInitialDirContextFactory
Modifier and Type | Method and Description |
---|---|
String |
getRootDn()
Returns the root DN of the contexts supplied by this factory.
|
DirContext |
newInitialDirContext()
Provides an initial context without specific user information.
|
DirContext |
newInitialDirContext(String userDn,
String password)
Provides an initial context by binding as a specific user.
|
String getRootDn()
DirContext newInitialDirContext()
DirContext newInitialDirContext(String userDn, String password)
userDn
- the user to authenticate as when obtaining the context.password
- the user's password.Copyright © 2017. All rights reserved.