Class ConfigSSLEngineProvider

java.lang.Object
org.apache.pekko.remote.artery.tcp.ConfigSSLEngineProvider
All Implemented Interfaces:
SSLEngineProvider

public class ConfigSSLEngineProvider extends Object implements SSLEngineProvider
Config in pekko.remote.artery.ssl.config-ssl-engine

Subclass may override protected methods to replace certain parts, such as key and trust manager.

  • Constructor Details

    • ConfigSSLEngineProvider

      public ConfigSSLEngineProvider(com.typesafe.config.Config config, MarkerLoggingAdapter log)
    • ConfigSSLEngineProvider

      public ConfigSSLEngineProvider(ActorSystem system)
  • Method Details

    • HostnameVerification

      public boolean HostnameVerification()
    • SSLEnabledAlgorithms

      public scala.collection.immutable.Set<String> SSLEnabledAlgorithms()
    • SSLKeyPassword

      public String SSLKeyPassword()
    • SSLKeyStore

      public String SSLKeyStore()
    • SSLKeyStorePassword

      public String SSLKeyStorePassword()
    • SSLProtocol

      public String SSLProtocol()
    • SSLRandomNumberGenerator

      public String SSLRandomNumberGenerator()
    • SSLRequireMutualAuthentication

      public boolean SSLRequireMutualAuthentication()
    • SSLTrustStore

      public String SSLTrustStore()
    • SSLTrustStorePassword

      public String SSLTrustStorePassword()
    • config

      protected com.typesafe.config.Config config()
    • createClientSSLEngine

      public SSLEngine createClientSSLEngine(String hostname, int port)
      Specified by:
      createClientSSLEngine in interface SSLEngineProvider
    • createSecureRandom

      public SecureRandom createSecureRandom()
    • createServerSSLEngine

      public SSLEngine createServerSSLEngine(String hostname, int port)
      Specified by:
      createServerSSLEngine in interface SSLEngineProvider
    • keyManagers

      protected KeyManager[] keyManagers()
      Subclass may override to customize KeyManager
    • loadKeystore

      protected KeyStore loadKeystore(String filename, String password)
      Subclass may override to customize loading of KeyStore
    • log

      protected MarkerLoggingAdapter log()
    • trustManagers

      protected TrustManager[] trustManagers()
      Subclass may override to customize TrustManager
    • verifyClientSession

      public scala.Option<Throwable> verifyClientSession(String hostname, SSLSession session)
      Description copied from interface: SSLEngineProvider
      Verification that will be called after every successful handshake to verify additional session information. Return None if valid otherwise Some with explaining cause.
      Specified by:
      verifyClientSession in interface SSLEngineProvider
    • verifyServerSession

      public scala.Option<Throwable> verifyServerSession(String hostname, SSLSession session)
      Description copied from interface: SSLEngineProvider
      Verification that will be called after every successful handshake to verify additional session information. Return None if valid otherwise Some with explaining cause.
      Specified by:
      verifyServerSession in interface SSLEngineProvider