public class ConnectionContext$
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ConnectionContext$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
ConnectionContext$() |
Modifier and Type | Method and Description |
---|---|
HttpsConnectionContext |
https(javax.net.ssl.SSLContext sslContext,
scala.Option<com.typesafe.sslconfig.pekko.PekkoSSLConfig> sslConfig,
scala.Option<scala.collection.immutable.Seq<java.lang.String>> enabledCipherSuites,
scala.Option<scala.collection.immutable.Seq<java.lang.String>> enabledProtocols,
scala.Option<org.apache.pekko.stream.TLSClientAuth> clientAuth,
scala.Option<javax.net.ssl.SSLParameters> sslParameters)
Deprecated.
use httpsClient, httpsServer, or the lower-level SSLEngine-based constructor. Since Akka HTTP 10.2.0.
|
HttpsConnectionContext |
httpsClient(scala.Function2<java.lang.String,java.lang.Object,javax.net.ssl.SSLEngine> createSSLEngine)
If you want complete control over how to create the SSLEngine you can use this method.
|
HttpsConnectionContext |
httpsClient(javax.net.ssl.SSLContext context)
Creates an HttpsConnectionContext for client-side use from the given SSLContext.
|
HttpsConnectionContext |
httpsServer(scala.Function0<javax.net.ssl.SSLEngine> createSSLEngine)
If you want complete control over how to create the SSLEngine you can use this method.
|
HttpsConnectionContext |
httpsServer(javax.net.ssl.SSLContext sslContext)
Creates an HttpsConnectionContext for server-side use from the given SSLContext.
|
HttpConnectionContext$ |
noEncryption() |
public static final ConnectionContext$ MODULE$
public HttpsConnectionContext httpsServer(javax.net.ssl.SSLContext sslContext)
sslContext
- (undocumented)public HttpsConnectionContext httpsServer(scala.Function0<javax.net.ssl.SSLEngine> createSSLEngine)
createSSLEngine
- (undocumented)public HttpsConnectionContext httpsClient(javax.net.ssl.SSLContext context)
context
- (undocumented)public HttpsConnectionContext httpsClient(scala.Function2<java.lang.String,java.lang.Object,javax.net.ssl.SSLEngine> createSSLEngine)
Note that this means it is up to you to make sure features like SNI and hostname verification are enabled as needed.
createSSLEngine
- (undocumented)public HttpsConnectionContext https(javax.net.ssl.SSLContext sslContext, scala.Option<com.typesafe.sslconfig.pekko.PekkoSSLConfig> sslConfig, scala.Option<scala.collection.immutable.Seq<java.lang.String>> enabledCipherSuites, scala.Option<scala.collection.immutable.Seq<java.lang.String>> enabledProtocols, scala.Option<org.apache.pekko.stream.TLSClientAuth> clientAuth, scala.Option<javax.net.ssl.SSLParameters> sslParameters)
public HttpConnectionContext$ noEncryption()