protected void tryToRemoveAlpnNegotiator ( ThirdPartyAlpnNegotiator negotiator , SSLEngine engine , SSLConnectionLink link ) { // the Java 9 and IBM JSSE ALPN implementations don't use a negotiator object if ( negotiator == null && isNativeAlpnActive ( ) ) { getNativeAlpnChoice ( engine , link ) ; } else if ( negotiator == null && isIbmAlpnActive ( ) ) { getAndRemoveIbmAlpnChoice ( engine , link ) ; } else if ( negotiator != null && isJettyAlpnActive ( ) && negotiator instanceof JettyServerNegotiator ) { ( ( JettyServerNegotiator ) negotiator ) . removeEngine ( ) ; } else if ( negotiator != null && isGrizzlyAlpnActive ( ) && negotiator instanceof GrizzlyAlpnNegotiator ) { ( ( GrizzlyAlpnNegotiator ) negotiator ) . removeServerNegotiatorEngine ( ) ; } }
If ALPN is active try to remove the ThirdPartyAlpnNegotiator from the map of active negotiators