Class TLSConnectionParameters

java.lang.Object
org.omegazero.net.client.params.ConnectionParameters
org.omegazero.net.client.params.TLSConnectionParameters

public class TLSConnectionParameters extends ConnectionParameters
Extended ConnectionParameters for connections encrypted using TLS.
  • Constructor Details

  • Method Details

    • setAlpnNames

      public void setAlpnNames(String[] alpnNames)
      Sets the list of requested application layer protocol names to be negotiated using TLS ALPN (Application Layer Protocol Negotiation). The elements in this list should be ordered from most-preferred to least-preferred protocol name.
      Parameters:
      alpnNames - The list of requested protocol names
      See Also:
    • getAlpnNames

      public String[] getAlpnNames()
      Returns the configured ALPN options using setAlpnNames(String[]).
      Returns:
      The configured ALPN options
    • setSniOptions

      public void setSniOptions(String[] sniOptions)
      Sets the list of requested server names using TLS SNI (Server Name Indication).

      If not set or null is passed, SNI is disabled.

      Parameters:
      sniOptions - The list of requested server names
    • getSniOptions

      public String[] getSniOptions()
      Returns the configured SNI options using setSniOptions(String[]).
      Returns:
      The configured SNI options