Class ConnectionContext

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static HttpsConnectionContext https​(javax.net.ssl.SSLContext sslContext)
      Deprecated.
      use httpsServer, httpsClient or the method that takes a custom factory.
      static HttpsConnectionContext https​(javax.net.ssl.SSLContext sslContext, java.util.Optional<com.typesafe.sslconfig.akka.AkkaSSLConfig> sslConfig, java.util.Optional<java.util.Collection<java.lang.String>> enabledCipherSuites, java.util.Optional<java.util.Collection<java.lang.String>> enabledProtocols, java.util.Optional<akka.stream.TLSClientAuth> clientAuth, java.util.Optional<javax.net.ssl.SSLParameters> sslParameters)
      Deprecated.
      use httpsServer, httpsClient or the method that takes a custom factory.
      static HttpsConnectionContext https​(javax.net.ssl.SSLContext sslContext, java.util.Optional<java.util.Collection<java.lang.String>> enabledCipherSuites, java.util.Optional<java.util.Collection<java.lang.String>> enabledProtocols, java.util.Optional<akka.stream.TLSClientAuth> clientAuth, java.util.Optional<javax.net.ssl.SSLParameters> sslParameters)
      Deprecated.
      use httpsServer, httpsClient or the method that takes a custom factory.
      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.
      static HttpsConnectionContext httpsClient​(javax.net.ssl.SSLContext sslContext)
      Creates an HttpsConnectionContext for client-side use from the given SSLContext.
      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.
      static HttpsConnectionContext httpsServer​(javax.net.ssl.SSLContext sslContext)
      Creates an HttpsConnectionContext for server-side use from the given SSLContext.
      abstract boolean isSecure()  
      static HttpConnectionContext noEncryption()
      Used to serve HTTP traffic.
      abstract scala.Option<com.typesafe.sslconfig.akka.AkkaSSLConfig> sslConfig()
      Deprecated.
      Not always available.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)
      • https

        public static HttpsConnectionContext https​(javax.net.ssl.SSLContext sslContext)
        Deprecated.
        use httpsServer, httpsClient or the method that takes a custom factory. Since 10.2.0.
      • https

        public static HttpsConnectionContext https​(javax.net.ssl.SSLContext sslContext,
                                                   java.util.Optional<com.typesafe.sslconfig.akka.AkkaSSLConfig> sslConfig,
                                                   java.util.Optional<java.util.Collection<java.lang.String>> enabledCipherSuites,
                                                   java.util.Optional<java.util.Collection<java.lang.String>> enabledProtocols,
                                                   java.util.Optional<akka.stream.TLSClientAuth> clientAuth,
                                                   java.util.Optional<javax.net.ssl.SSLParameters> sslParameters)
        Deprecated.
        use httpsServer, httpsClient or the method that takes a custom factory. Since 10.2.0.
      • https

        public static HttpsConnectionContext https​(javax.net.ssl.SSLContext sslContext,
                                                   java.util.Optional<java.util.Collection<java.lang.String>> enabledCipherSuites,
                                                   java.util.Optional<java.util.Collection<java.lang.String>> enabledProtocols,
                                                   java.util.Optional<akka.stream.TLSClientAuth> clientAuth,
                                                   java.util.Optional<javax.net.ssl.SSLParameters> sslParameters)
        Deprecated.
        use httpsServer, httpsClient or the method that takes a custom factory. Since 10.2.0.
      • isSecure

        public abstract boolean isSecure()
      • sslConfig

        public abstract scala.Option<com.typesafe.sslconfig.akka.AkkaSSLConfig> sslConfig()
        Deprecated.
        Not always available. Since 10.2.0.