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
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(ContextSettings contextSettings) void
close
(DirContext context) Closes the given context.
-
Constructor Details
-
DefaultContextBuilder
public DefaultContextBuilder()
-
-
Method Details
-
build
- Specified by:
build
in 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:
build
in 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:ContextBuilder
Closes the given context.- Specified by:
close
in interfaceContextBuilder
- Parameters:
context
- The context to close
-