Class TLSConfigurationMode

java.lang.Object
com.helger.http.tls.TLSConfigurationMode
All Implemented Interfaces:
ITLSConfigurationMode

public class TLSConfigurationMode extends Object implements ITLSConfigurationMode
Standalone implementation of ITLSConfigurationMode.
Since:
9.0.5
Author:
Philip Helger
  • Constructor Details

    • TLSConfigurationMode

      public TLSConfigurationMode(@Nonnull @Nonempty ETLSVersion[] aTLSVersions, @Nonnull String[] aCipherSuites)
      Constructor. The constructor uses only the cipher suites that are supported by the underlying operating system and TLS version. getAllCipherSuites() returns the filtered list.
      Parameters:
      aTLSVersions - The supported TLS versions. Order is important and maintained. MAy neither be null nor empty.
      aCipherSuites - The cipher suites to be used. May not be null and may not contain null values.
  • Method Details

    • isSupportedCipherSuiteInSSLContext

      public static boolean isSupportedCipherSuiteInSSLContext(@Nonnull ETLSVersion[] aTLSVersions, @Nonnull @Nonempty String sCipherSuite)
    • getAllTLSVersions

      @Nonnull @ReturnsMutableCopy public com.helger.collection.commons.ICommonsList<ETLSVersion> getAllTLSVersions()
      Specified by:
      getAllTLSVersions in interface ITLSConfigurationMode
      Returns:
      A list of supported TLS versions in the correct order. May not be null.
    • getAllTLSVersionIDs

      @Nonnull @ReturnsMutableCopy public com.helger.collection.commons.ICommonsList<String> getAllTLSVersionIDs()
      Specified by:
      getAllTLSVersionIDs in interface ITLSConfigurationMode
      Returns:
      A list of the IDs of the supported TLS versions in the correct order. May not be null.
    • getAllTLSVersionIDsAsArray

      @Nullable @ReturnsMutableCopy public String[] getAllTLSVersionIDsAsArray()
      Specified by:
      getAllTLSVersionIDsAsArray in interface ITLSConfigurationMode
      Returns:
      A list of the IDs of the supported TLS versions in the correct order. May be null if no TLS versions are defined.
    • getAllCipherSuites

      @Nonnull @ReturnsMutableCopy public com.helger.collection.commons.ICommonsList<String> getAllCipherSuites()
      Specified by:
      getAllCipherSuites in interface ITLSConfigurationMode
      Returns:
      All cipher suites in the correct order. May not be null.
    • getAllCipherSuitesAsArray

      @Nullable @ReturnsMutableCopy public String[] getAllCipherSuitesAsArray()
      Specified by:
      getAllCipherSuitesAsArray in interface ITLSConfigurationMode
      Returns:
      All cipher suites in the correct order. May be null if no cipher suite is defined.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object