Class AkkaSSLConfig

  • All Implemented Interfaces:
    Extension

    public final class AkkaSSLConfig
    extends java.lang.Object
    implements Extension
    Can be used to modify the underlying config, most typically used to change a few values in the default config
    • Constructor Detail

      • AkkaSSLConfig

        public AkkaSSLConfig​(ExtendedActorSystem system,
                             com.typesafe.sslconfig.ssl.SSLConfigSettings config)
    • Method Detail

      • defaultSSLConfigSettings

        public static com.typesafe.sslconfig.ssl.SSLConfigSettings defaultSSLConfigSettings​(ActorSystem system)
      • hashCode

        public static final int hashCode()
      • equals

        public static final boolean equals​(java.lang.Object other)
      • config

        public com.typesafe.sslconfig.ssl.SSLConfigSettings config()
      • withSettings

        public AkkaSSLConfig withSettings​(com.typesafe.sslconfig.ssl.SSLConfigSettings c)
        Can be used to modify the underlying config, most typically used to change a few values in the default config
      • mapSettings

        public AkkaSSLConfig mapSettings​(scala.Function1<com.typesafe.sslconfig.ssl.SSLConfigSettings,​com.typesafe.sslconfig.ssl.SSLConfigSettings> f)
        Returns a new AkkaSSLConfig instance with the settings changed by the given function. Please note that the ActorSystem-wide extension always remains configured via typesafe config, custom ones can be created for special-handling specific connections
        Parameters:
        f - (undocumented)
        Returns:
        (undocumented)
      • convertSettings

        public AkkaSSLConfig convertSettings​(java.util.function.Function<com.typesafe.sslconfig.ssl.SSLConfigSettings,​com.typesafe.sslconfig.ssl.SSLConfigSettings> f)
        Returns a new AkkaSSLConfig instance with the settings changed by the given function. Please note that the ActorSystem-wide extension always remains configured via typesafe config, custom ones can be created for special-handling specific connections

        Java API

        Parameters:
        f - (undocumented)
        Returns:
        (undocumented)
      • hostnameVerifier

        public javax.net.ssl.HostnameVerifier hostnameVerifier()
      • buildKeyManagerFactory

        public com.typesafe.sslconfig.ssl.KeyManagerFactoryWrapper buildKeyManagerFactory​(com.typesafe.sslconfig.ssl.SSLConfigSettings ssl)
      • buildTrustManagerFactory

        public com.typesafe.sslconfig.ssl.TrustManagerFactoryWrapper buildTrustManagerFactory​(com.typesafe.sslconfig.ssl.SSLConfigSettings ssl)
      • buildHostnameVerifier

        public javax.net.ssl.HostnameVerifier buildHostnameVerifier​(com.typesafe.sslconfig.ssl.SSLConfigSettings conf)
      • validateDefaultTrustManager

        public void validateDefaultTrustManager​(com.typesafe.sslconfig.ssl.SSLConfigSettings sslConfig)
      • configureProtocols

        public java.lang.String[] configureProtocols​(java.lang.String[] existingProtocols,
                                                     com.typesafe.sslconfig.ssl.SSLConfigSettings sslConfig)
      • configureCipherSuites

        public java.lang.String[] configureCipherSuites​(java.lang.String[] existingCiphers,
                                                        com.typesafe.sslconfig.ssl.SSLConfigSettings sslConfig)