class LdapAuthenticator implements PasswordAuthenticator {

    @VisibleForTesting
    static boolean containsSpecialCharacters(String user)
    {
        if (WHITESPACE.indexIn(user) == 0 || WHITESPACE.lastIndexIn(user) == user.length() - 1) {
            return true;
        }
        return SPECIAL_CHARACTERS.matchesAnyOf(user);
    }

    @Inject public  LdapAuthenticator(LdapConfig ldapConfig);

}