Class ConfigSSLEngineProvider

  • All Implemented Interfaces:
    SSLEngineProvider

    public class ConfigSSLEngineProvider
    extends java.lang.Object
    implements SSLEngineProvider
    Subclass may override to customize loading of KeyStore
    • Constructor Detail

      • ConfigSSLEngineProvider

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

        public ConfigSSLEngineProvider​(ActorSystem system)
    • Method Detail

      • HostnameVerification

        public boolean HostnameVerification()
      • SSLEnabledAlgorithms

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

        public java.lang.String SSLKeyPassword()
      • SSLKeyStore

        public java.lang.String SSLKeyStore()
      • SSLKeyStorePassword

        public java.lang.String SSLKeyStorePassword()
      • SSLProtocol

        public java.lang.String SSLProtocol()
      • SSLRandomNumberGenerator

        public java.lang.String SSLRandomNumberGenerator()
      • SSLRequireMutualAuthentication

        public boolean SSLRequireMutualAuthentication()
      • SSLTrustStore

        public java.lang.String SSLTrustStore()
      • SSLTrustStorePassword

        public java.lang.String SSLTrustStorePassword()
      • config

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

        public java.security.SecureRandom createSecureRandom()
      • keyManagers

        protected javax.net.ssl.KeyManager[] keyManagers()
        Subclass may override to customize KeyManager
        Returns:
        (undocumented)
      • loadKeystore

        protected java.security.KeyStore loadKeystore​(java.lang.String filename,
                                                      java.lang.String password)
        Subclass may override to customize loading of KeyStore
        Parameters:
        filename - (undocumented)
        password - (undocumented)
        Returns:
        (undocumented)
      • trustManagers

        protected javax.net.ssl.TrustManager[] trustManagers()
        Subclass may override to customize TrustManager
        Returns:
        (undocumented)
      • verifyClientSession

        public scala.Option<java.lang.Throwable> verifyClientSession​(java.lang.String hostname,
                                                                     javax.net.ssl.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
        Parameters:
        hostname - (undocumented)
        session - (undocumented)
        Returns:
        (undocumented)
      • verifyServerSession

        public scala.Option<java.lang.Throwable> verifyServerSession​(java.lang.String hostname,
                                                                     javax.net.ssl.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
        Parameters:
        hostname - (undocumented)
        session - (undocumented)
        Returns:
        (undocumented)