public interface ContextBuilder
| Modifier and Type | Method and Description |
|---|---|
DirContext |
build(ContextSettings contextSettings) |
DirContext |
build(String factory,
String server,
String user,
String password,
boolean pooled) |
void |
close(DirContext context)
Closes the given context.
|
DirContext build(ContextSettings contextSettings) throws NamingException
contextSettings - The settings to use to build the contextNamingException - If an error occursDirContext build(String factory, String server, String user, String password, boolean pooled) throws NamingException
factory - The factory classserver - The ldap serveruser - The user DN to bindpassword - The password to bindpooled - If the query should be pooledNamingException - If an error occursvoid close(@Nullable DirContext context)
context - The context to close