TLS connection not establishing after introducing new customsslengine class

I have created new scala class for introducing customsslengine as below

package akka.osgi;

import akka.actor.ActorSystem
import akka.event.{Logging, LoggingAdapter}
import akka.remote.artery.tcp.ConfigSSLEngineProvider
import com.typesafe.config.Config
import javax.net.ssl.SSLEngine
import scala.collection.JavaConverters._

class ConfigurableTlsProvider(system: ActorSystem) extends ConfigSSLEngineProvider(system) {

// Create a separate logger instance instead of overriding the parent’s log
private val logger: LoggingAdapter = Logging.getLogger(system, this.getClass)

private val arteryConfig: Config = system.settings.config.getConfig(“akka.remote.artery”)

// Read the enabled protocols from the configuration
private val enabledTlsVersions: Array[String] = {
logger.error(“NN Loading TLS versions”)
val configPath = “ssl.tcp.enabled-protocols”
if (arteryConfig.hasPath(configPath)) {
val versions = arteryConfig.getStringList(configPath).asScala.toArray
logger.error(“NN Loaded TLS versions from configuration: {}”, versions.mkString(", “))
versions
} else {
// Fallback to a default if the configuration is not provided
val defaultVersions = Array(“TLSv1.3”, “TLSv1.2”)
logger.error(
“NN Configuration ‘{}’ not found. Falling back to default TLS versions: {}”,
configPath,
defaultVersions.mkString(”, ")
)
defaultVersions
}
}

private def configureTls(sslEngine: SSLEngine): SSLEngine = {
logger.error(“NN Loading TLS versions in sslengine”)
sslEngine.setEnabledProtocols(enabledTlsVersions)
sslEngine
}

override def createServerSSLEngine(hostname: String, port: Int): SSLEngine = {
logger.error(“NN Applying custom TLS versions to server SSLEngine for {}:{}”, hostname, port)
val sslEngine = super.createServerSSLEngine(hostname, port)
configureTls(sslEngine)
}

override def createClientSSLEngine(hostname: String, port: Int): SSLEngine = {
logger.error(“NN Applying custom TLS versions to client SSLEngine for {}:{}”, hostname, port)
val sslEngine = super.createClientSSLEngine(hostname, port)
configureTls(sslEngine)
}
}

Then mapped this in application.conf in below
akka{
remote {
artery {
transport = tls-tcp
log-sent-messages = off
log-sent-messages = ${?AKKA_LOGREMOTE}
log-received-messages = off
log-received-messages = ${?AKKA_LOGREMOTE}

  ssl {
    tcp {
      ssl-engine-provider = "akka.osgi.ConfigurableTlsProvider"
      enabled-protocols=["TLSv1.3", "TLSv1.2"]
    }
    config-ssl-engine {
      protocol = "TLSv1.3"
      enabled-protocols=["TLSv1.2", "TLSv1.3"]
      enabled-algorithms=[TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_AES_256_GCM_SHA384,TLS_AES_128_GCM_SHA256,TLS_CHACHA20_POLY1305_SHA256]
    }
  }
}

But i did not get any logs added in ConfigurableTlsProvider class and TLS connection is not establishing as well.

could any one help on this?