com.yammer.dropwizard.authenticator.AutoclosingDirContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dropwizard-auth-ldap Show documentation
Show all versions of dropwizard-auth-ldap Show documentation
Dropwizard Authentication Module for LDAP using JNDI
package com.yammer.dropwizard.authenticator;
import javax.naming.NamingException;
import javax.naming.directory.InitialDirContext;
import java.util.Hashtable;
public class AutoclosingDirContext extends InitialDirContext implements AutoCloseable {
protected AutoclosingDirContext(boolean lazy) throws NamingException {
super(lazy);
}
public AutoclosingDirContext() throws NamingException {
super();
}
public AutoclosingDirContext(Hashtable, ?> environment) throws NamingException {
super(environment);
}
@Override
public void close() throws NamingException {
super.close();
}
}