Class TlsOptions


  • public class TlsOptions
    extends Object
    TLS Options value object.
    • Constructor Detail

      • TlsOptions

        public TlsOptions​(String algorithm,
                          KeyManager[] managers,
                          TrustManager[] trustManagers,
                          List<String> ciphers,
                          List<String> protocols)
        Constructs TLS options with provided values.
        Parameters:
        algorithm - SSL algorithm (not null)
        managers - array of KeyManager (may be 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)
    • Method Detail

      • getAlgorithm

        public String getAlgorithm()
        Returns the SSL context algorithm name (never null).
        Returns:
        the SSL context algorithm name (never null).
      • getKeyManagers

        public KeyManager[] getKeyManagers()
        Returns the array of KeyManager to use (may be null).
        Returns:
        the array of KeyManager to use (may be null).
      • getCipherSuitesArray

        public String[] getCipherSuitesArray()
        Returns the array of cipher suites to be enabled (may be null for JVM default).
        Returns:
        the array of cipher suites to be enabled (may be null for JVM default).
      • getCipherSuitesList

        public List<String> getCipherSuitesList()
        Returns the list of cipher suites to be enabled (may be empty for JVM default).
        Returns:
        the list of cipher suites to be enabled (may be empty for JVM default).
      • getEnabledProtocolsArray

        public String[] getEnabledProtocolsArray()
        Returns the array of protocols to be enabled (may be null for JVM default).
        Returns:
        the array of protocols to be enabled (may be null for JVM default).
      • getEnabledProtocolsList

        public List<String> getEnabledProtocolsList()
        Returns the list of protocols to be enabled (may be empty for JVM default).
        Returns:
        the list of protocols to be enabled (may be empty for JVM default).