| | |
| | | |
| | | |
| | | |
| | | import static com.forgerock.opendj.ldap.SynchronizedConnection.synchronizeConnection; |
| | | import static org.forgerock.opendj.ldap.ErrorResultException.newErrorResult; |
| | | |
| | | import java.io.IOException; |
| | |
| | | final class LDAPConnection extends AbstractAsynchronousConnection implements |
| | | Connection |
| | | { |
| | | private final org.glassfish.grizzly.Connection<?> connection; |
| | | private final SynchronizedConnection<?> connection; |
| | | private Result connectionInvalidReason; |
| | | private FilterChain customFilterChain; |
| | | private boolean isClosed = false; |
| | |
| | | LDAPConnection(final org.glassfish.grizzly.Connection<?> connection, |
| | | final LDAPOptions options) |
| | | { |
| | | this.connection = connection; |
| | | // FIXME: remove synchronization when OPENDJ-422 is resolved. |
| | | this.connection = synchronizeConnection(connection); |
| | | this.options = options; |
| | | } |
| | | |
| | |
| | | : cipherSuites.toArray(new String[cipherSuites.size()])); |
| | | sslFilter = new SSLFilter(null, sslEngineConfigurator); |
| | | installFilter(sslFilter); |
| | | sslFilter.handshake(connection, completionHandler); |
| | | sslFilter.handshake(connection.getUnsynchronizedConnection(), |
| | | completionHandler); |
| | | } |
| | | |
| | | |