Class ConnectionContext

    • Constructor Detail

      • ConnectionContext

        public ConnectionContext()
    • Method Detail

      • httpsServer

        public static HttpsConnectionContext httpsServer​(javax.net.ssl.SSLContext sslContext)
        Creates an HttpsConnectionContext for server-side use from the given SSLContext.
        Parameters:
        sslContext - (undocumented)
        Returns:
        (undocumented)
      • httpsServer

        public static HttpsConnectionContext httpsServer​(akka.japi.function.Creator<javax.net.ssl.SSLEngine> createEngine)
        If you want complete control over how to create the SSLEngine you can use this method.
        Parameters:
        createEngine - (undocumented)
        Returns:
        (undocumented)
      • httpsClient

        public static HttpsConnectionContext httpsClient​(javax.net.ssl.SSLContext sslContext)
        Creates an HttpsConnectionContext for client-side use from the given SSLContext.
        Parameters:
        sslContext - (undocumented)
        Returns:
        (undocumented)
      • httpsClient

        public static HttpsConnectionContext httpsClient​(akka.japi.function.Function2<java.lang.String,​java.lang.Integer,​javax.net.ssl.SSLEngine> createEngine)
        If you want complete control over how to create the SSLEngine you can use this method.

        Note that this means it is up to you to make sure features like SNI and hostname verification are enabled as needed.

        Parameters:
        createEngine - (undocumented)
        Returns:
        (undocumented)
      • isSecure

        public abstract boolean isSecure()