Class ServerTlsOptions


  • public class ServerTlsOptions
    extends TlsOptions
    Extension to TlsOptions supporting client authentication configuration used to drive the authentication negotiation between the client and IG.
    • Constructor Detail

      • ServerTlsOptions

        public ServerTlsOptions​(String algorithm,
                                KeyManager[] managers,
                                TrustManager[] trustManagers,
                                List<String> ciphers,
                                List<String> protocols,
                                boolean enableAlpn,
                                ServerTlsOptions.ClientAuthentication clientAuth,
                                boolean offloadHandshake)
        Constructs TLS options with provided values. The KeyManager is used for server authentication.
        Parameters:
        algorithm - SSL algorithm (not null)
        managers - array of KeyManager (not null)
        trustManagers - array of TrustManager (may be null)
        ciphers - list of cipher suites to be enabled (may be empty for JVM default)
        protocols - list of protocols to be enabled (may be empty for JVM default)
        enableAlpn - enable the ALPN TLS extension
        clientAuth - required level of client authentication (not null)
        offloadHandshake - whether to use a worker thread when processing the handshake
      • ServerTlsOptions

        public ServerTlsOptions​(String algorithm,
                                TrustManager[] trustManagers,
                                List<String> ciphers,
                                List<String> protocols,
                                boolean enableAlpn,
                                ServerTlsOptions.ClientAuthentication clientAuth,
                                boolean offloadHandshake,
                                ServerTlsOptions.SniConfiguration sniConfiguration)
        Constructs TLS options with provided values. The ServerTlsOptions.SniConfiguration is used for server authentication.
        Parameters:
        algorithm - SSL algorithm (not null)
        trustManagers - array of TrustManager (may be null)
        ciphers - list of cipher suites to be enabled (may be empty for JVM default)
        protocols - list of protocols to be enabled (may be empty for JVM default)
        enableAlpn - enable the ALPN TLS extension
        clientAuth - required level of client authentication (not null)
        offloadHandshake - enable handshaking to be offloaded to a worker thread
        sniConfiguration - The SNI configuration (not null)