com.yammer.dropwizard.authenticator.LdapCanAuthenticate 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 io.dropwizard.auth.AuthenticationException;
import io.dropwizard.auth.basic.BasicCredentials;
public class LdapCanAuthenticate extends LdapAuthenticator {
public LdapCanAuthenticate(LdapConfiguration configuration) {
super(configuration);
}
@Override
public boolean authenticate(BasicCredentials credentials) throws AuthenticationException {
return canAuthenticate();
}
}