DefaultIoFilterChainBuilder newChain = ( DefaultIoFilterChainBuilder ) LdapsInitializer.init( keyStore, certificatePassword );
dfcb.replace( sslFilterName, newChain.get( sslFilterName ) );
newChain = null;
}
StartTlsHandler handler = ( StartTlsHandler ) getExtendedOperationHandler( StartTlsHandler.EXTENSION_OID );
if( handler != null )
{
//FIXME dirty hack. IMO StartTlsHandler's code requires a cleanup
// cause the keystore loading and sslcontext creation code is duplicated
// both in the LdapService as well as StatTlsHandler
handler.setLdapServer( this );
}
LOG.info( "reloaded SSL context successfully" );
}