Interface SslOptions


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

  • Method Details

    • isSpecified

      default boolean isSpecified()
      Return if any SSL options have been specified.
      Returns:
      true if SSL options have been specified
    • getCiphers

      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

      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
    • asSet

      static Set<String> asSet(String[] array)
      Helper method that provides a null-safe way to convert a String[] to a Collection for client libraries to use.
      Parameters:
      array - the array to convert
      Returns:
      a collection or null