Interface SslOptions


public interface SslOptions
Configuration options that should be applied when establishing an SSL connection.
Since:
3.1.0
Author:
Scott Frederick
See Also:
  • Field Details

  • Method Details

    • getCiphers

      Set<String> getCiphers()
      Return the ciphers that can be used or an empty set. The cipher names in this set should be compatible with those supported by SSLEngine.getSupportedCipherSuites().
      Returns:
      the ciphers that can be used or null
    • getEnabledProtocols

      Set<String> getEnabledProtocols()
      Return the protocols that should be enabled or an empty set. The protocols names in this set should be compatible with those supported by SSLEngine.getSupportedProtocols().
      Returns:
      the protocols to enable or null
    • of

      static SslOptions of(String[] ciphers, String[] enabledProtocols)
      Factory method to create a new SslOptions instance.
      Parameters:
      ciphers - the ciphers
      enabledProtocols - the enabled protocols
      Returns:
      a new SslOptions instance
    • of

      static SslOptions of(Set<String> ciphers, Set<String> enabledProtocols)
      Factory method to create a new SslOptions instance.
      Parameters:
      ciphers - the ciphers
      enabledProtocols - the enabled protocols
      Returns:
      a new SslOptions instance