Class Http2JDKAlpnSupport


  • public class Http2JDKAlpnSupport
    extends java.lang.Object
    INTERNAL API

    The actual implementation of ALPN support on supported JDKs. We rely on lazy class loading to not fail with class loading errors when ALPN support is missing.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void applySessionParameters​(javax.net.ssl.SSLEngine engine, akka.stream.TLSProtocol.NegotiateNewSession sessionParameters)  
      static void clientSetApplicationProtocols​(javax.net.ssl.SSLEngine engine, java.lang.String[] protocols)  
      static javax.net.ssl.SSLEngine jdkAlpnSupport​(javax.net.ssl.SSLEngine engine, scala.Function1<java.lang.String,​scala.runtime.BoxedUnit> setChosenProtocol)  
      • Methods inherited from class java.lang.Object

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

      • Http2JDKAlpnSupport

        public Http2JDKAlpnSupport()
    • Method Detail

      • jdkAlpnSupport

        public static javax.net.ssl.SSLEngine jdkAlpnSupport​(javax.net.ssl.SSLEngine engine,
                                                             scala.Function1<java.lang.String,​scala.runtime.BoxedUnit> setChosenProtocol)
      • applySessionParameters

        public static void applySessionParameters​(javax.net.ssl.SSLEngine engine,
                                                  akka.stream.TLSProtocol.NegotiateNewSession sessionParameters)
      • clientSetApplicationProtocols

        public static void clientSetApplicationProtocols​(javax.net.ssl.SSLEngine engine,
                                                         java.lang.String[] protocols)