public abstract class CommonLDAPOptions
public final class LDAPServerFilter
| | |
| | | /** |
| | | * Common options for LDAP clients and listeners. |
| | | */ |
| | | abstract class CommonLDAPOptions { |
| | | public abstract class CommonLDAPOptions { |
| | | /** |
| | | * Specifies the class loader which will be used to load the |
| | | * {@link org.forgerock.opendj.ldap.spi.TransportProvider TransportProvider}. |
| | |
| | | * Grizzly filter implementation for decoding LDAP requests and handling server side logic for SSL and SASL operations |
| | | * over LDAP. |
| | | */ |
| | | final class LDAPServerFilter extends BaseFilter { |
| | | public final class LDAPServerFilter extends BaseFilter { |
| | | private final Function<LDAPClientContext, |
| | | ReactiveHandler<LDAPClientContext, LdapRequestEnvelope, Stream<Response>>, |
| | | LdapException> connectionHandlerFactory; |
| | |
| | | new LDAPConnectionFactory(listenerAddr.getHostName(), |
| | | listenerAddr.getPort()).getConnection(); |
| | | failedConnection.close(); |
| | | connection.close(); |
| | | failedConnection.bind("cn=test", "password".toCharArray()); |
| | | failedConnection.close(); |
| | | fail("Connection attempt to closed listener succeeded unexpectedly"); |
| | | } catch (final ConnectionException e) { |
| | | } catch (final Exception e) { |
| | | // Expected. |
| | | } |
| | | |