Class TlsConfig


  • public final class TlsConfig
    extends Object
    A class wrapping transport layer security (TLS) configuration for WebServer sockets.
    • Method Detail

      • create

        public static TlsConfig create​(Config config)
        Create TLS configuration from config.
        Parameters:
        config - located on the node of the tls configuration (usually this is ssl)
        Returns:
        a new TLS configuration
      • enabled

        public boolean enabled()
        Whether this TLS config has security enabled (and the socket is going to be protected by one of the TLS protocols), or no (and the socket is going to be plain).
        Returns:
        true if this configuration represents a TLS configuration, false for plain configuration