Class SNIAlpnEngineManager

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getPriority()  
      boolean registerEngine​(javax.net.ssl.SSLEngine engine, java.util.function.Function<javax.net.ssl.SSLEngine,​javax.net.ssl.SSLEngine> selectedFunction)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SNIAlpnEngineManager

        public SNIAlpnEngineManager()
    • Method Detail

      • getPriority

        public int getPriority()
        Specified by:
        getPriority in interface ALPNEngineManager
        Returns:
        The priority of this provider, higher priority managers will be tried first
      • registerEngine

        public boolean registerEngine​(javax.net.ssl.SSLEngine engine,
                                      java.util.function.Function<javax.net.ssl.SSLEngine,​javax.net.ssl.SSLEngine> selectedFunction)
        Specified by:
        registerEngine in interface ALPNEngineManager
        Parameters:
        engine - The original SSL Engine
        selectedFunction - A function that must be called when the Underlying SSL engine has been selected. The return value of this callback may be a wrapped engine, which must replace the selected engine
        Returns:
        true if the engine was registered, false otherwise