public abstract class ConnectionContext
extends java.lang.Object
Constructor and Description |
---|
ConnectionContext() |
Modifier and Type | Method and Description |
---|---|
static HttpsConnectionContext |
https(javax.net.ssl.SSLContext sslContext)
Deprecated.
use httpsServer, httpsClient or the method that takes a custom factory. Since Akka HTTP 10.2.0.
|
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<org.apache.pekko.stream.TLSClientAuth> clientAuth,
java.util.Optional<javax.net.ssl.SSLParameters> sslParameters)
Deprecated.
use httpsServer, httpsClient or the method that takes a custom factory. Since Akka HTTP 10.2.0.
|
static HttpsConnectionContext |
https(javax.net.ssl.SSLContext sslContext,
java.util.Optional<com.typesafe.sslconfig.pekko.PekkoSSLConfig> sslConfig,
java.util.Optional<java.util.Collection<java.lang.String>> enabledCipherSuites,
java.util.Optional<java.util.Collection<java.lang.String>> enabledProtocols,
java.util.Optional<org.apache.pekko.stream.TLSClientAuth> clientAuth,
java.util.Optional<javax.net.ssl.SSLParameters> sslParameters)
Deprecated.
use httpsServer, httpsClient or the method that takes a custom factory. Since Akka HTTP 10.2.0.
|
static HttpsConnectionContext |
httpsClient(org.apache.pekko.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(org.apache.pekko.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.pekko.PekkoSSLConfig> |
sslConfig()
Deprecated.
Not always available. Since Akka HTTP 10.2.0.
|
public static HttpsConnectionContext httpsServer(javax.net.ssl.SSLContext sslContext)
sslContext
- (undocumented)public static HttpsConnectionContext httpsServer(org.apache.pekko.japi.function.Creator<javax.net.ssl.SSLEngine> createEngine)
createEngine
- (undocumented)public static HttpsConnectionContext httpsClient(javax.net.ssl.SSLContext sslContext)
sslContext
- (undocumented)public static HttpsConnectionContext httpsClient(org.apache.pekko.japi.function.Function2<java.lang.String,java.lang.Integer,javax.net.ssl.SSLEngine> createEngine)
Note that this means it is up to you to make sure features like SNI and hostname verification are enabled as needed.
createEngine
- (undocumented)public static HttpsConnectionContext https(javax.net.ssl.SSLContext sslContext)
public static HttpsConnectionContext https(javax.net.ssl.SSLContext sslContext, java.util.Optional<com.typesafe.sslconfig.pekko.PekkoSSLConfig> sslConfig, java.util.Optional<java.util.Collection<java.lang.String>> enabledCipherSuites, java.util.Optional<java.util.Collection<java.lang.String>> enabledProtocols, java.util.Optional<org.apache.pekko.stream.TLSClientAuth> clientAuth, java.util.Optional<javax.net.ssl.SSLParameters> sslParameters)
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<org.apache.pekko.stream.TLSClientAuth> clientAuth, java.util.Optional<javax.net.ssl.SSLParameters> sslParameters)
public static HttpConnectionContext noEncryption()
public abstract boolean isSecure()
public abstract scala.Option<com.typesafe.sslconfig.pekko.PekkoSSLConfig> sslConfig()