Class DefaultContextBuilder
java.lang.Object
io.micronaut.security.ldap.context.DefaultContextBuilder
- All Implemented Interfaces:
ContextBuilder
Default implementation of
ContextBuilder.- Since:
- 1.0
- Author:
- James Kleeh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(ContextSettings contextSettings) voidclose(DirContext context) Closes the given context.
-
Constructor Details
-
DefaultContextBuilder
public DefaultContextBuilder()
-
-
Method Details
-
build
- Specified by:
buildin interfaceContextBuilder- Parameters:
contextSettings- The settings to use to build the context- Returns:
- The context
- Throws:
NamingException- If an error occurs
-
build
public DirContext build(String factory, String server, String user, String password, boolean pooled) throws NamingException - Specified by:
buildin interfaceContextBuilder- Parameters:
factory- The factory classserver- The ldap serveruser- The user DN to bindpassword- The password to bindpooled- If the query should be pooled- Returns:
- The context
- Throws:
NamingException- If an error occurs
-
close
Description copied from interface:ContextBuilderCloses the given context.- Specified by:
closein interfaceContextBuilder- Parameters:
context- The context to close
-