update Akka refs in PekkoSSLConfig.scala (#198)
This commit is contained in:
parent
2db1833f27
commit
36377c6c9a
1 changed files with 8 additions and 4 deletions
|
|
@ -24,7 +24,8 @@ import pekko.annotation.InternalApi
|
||||||
import pekko.event.Logging
|
import pekko.event.Logging
|
||||||
import scala.annotation.nowarn
|
import scala.annotation.nowarn
|
||||||
|
|
||||||
@deprecated("Use Tcp and TLS with SSLEngine parameters instead. Setup the SSLEngine with needed parameters.", "2.6.0")
|
@deprecated("Use Tcp and TLS with SSLEngine parameters instead. Setup the SSLEngine with needed parameters.",
|
||||||
|
"Akka 2.6.0")
|
||||||
object PekkoSSLConfig extends ExtensionId[PekkoSSLConfig] with ExtensionIdProvider {
|
object PekkoSSLConfig extends ExtensionId[PekkoSSLConfig] with ExtensionIdProvider {
|
||||||
|
|
||||||
//////////////////// EXTENSION SETUP ///////////////////
|
//////////////////// EXTENSION SETUP ///////////////////
|
||||||
|
|
@ -39,14 +40,15 @@ object PekkoSSLConfig extends ExtensionId[PekkoSSLConfig] with ExtensionIdProvid
|
||||||
new PekkoSSLConfig(system, defaultSSLConfigSettings(system))
|
new PekkoSSLConfig(system, defaultSSLConfigSettings(system))
|
||||||
|
|
||||||
def defaultSSLConfigSettings(system: ActorSystem): SSLConfigSettings = {
|
def defaultSSLConfigSettings(system: ActorSystem): SSLConfigSettings = {
|
||||||
val akkaOverrides = system.settings.config.getConfig("pekko.ssl-config")
|
val pekkoOverrides = system.settings.config.getConfig("pekko.ssl-config")
|
||||||
val defaults = system.settings.config.getConfig("ssl-config")
|
val defaults = system.settings.config.getConfig("ssl-config")
|
||||||
SSLConfigFactory.parse(akkaOverrides.withFallback(defaults))
|
SSLConfigFactory.parse(pekkoOverrides.withFallback(defaults))
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@deprecated("Use Tcp and TLS with SSLEngine parameters instead. Setup the SSLEngine with needed parameters.", "2.6.0")
|
@deprecated("Use Tcp and TLS with SSLEngine parameters instead. Setup the SSLEngine with needed parameters.",
|
||||||
|
"Akka 2.6.0")
|
||||||
final class PekkoSSLConfig(system: ExtendedActorSystem, val config: SSLConfigSettings) extends Extension {
|
final class PekkoSSLConfig(system: ExtendedActorSystem, val config: SSLConfigSettings) extends Extension {
|
||||||
|
|
||||||
private val mkLogger = new PekkoLoggerFactory(system)
|
private val mkLogger = new PekkoLoggerFactory(system)
|
||||||
|
|
@ -143,6 +145,8 @@ final class PekkoSSLConfig(system: ExtendedActorSystem, val config: SSLConfigSet
|
||||||
v
|
v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@deprecated("validateDefaultTrustManager is not doing anything since akka 2.6.19 and should not be used",
|
||||||
|
"Akka 2.6.19")
|
||||||
def validateDefaultTrustManager(@nowarn("msg=never used") sslConfig: SSLConfigSettings): Unit = {
|
def validateDefaultTrustManager(@nowarn("msg=never used") sslConfig: SSLConfigSettings): Unit = {
|
||||||
log.warning(
|
log.warning(
|
||||||
"validateDefaultTrustManager is not doing anything since akka 2.6.19, it was useful only in Java 7 and below");
|
"validateDefaultTrustManager is not doing anything since akka 2.6.19, it was useful only in Java 7 and below");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue