Package com.helger.http.tls
Class TLSConfigurationMode
java.lang.Object
com.helger.http.tls.TLSConfigurationMode
- All Implemented Interfaces:
ITLSConfigurationMode
Standalone implementation of
ITLSConfigurationMode.- Since:
- 9.0.5
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionTLSConfigurationMode(ETLSVersion[] aTLSVersions, String[] aCipherSuites) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.helger.collection.commons.ICommonsList<String> String[]com.helger.collection.commons.ICommonsList<String> String[]com.helger.collection.commons.ICommonsList<ETLSVersion> inthashCode()static booleanisSupportedCipherSuiteInSSLContext(ETLSVersion[] aTLSVersions, String sCipherSuite) toString()
-
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 benullnor empty.aCipherSuites- The cipher suites to be used. May not benulland may not containnullvalues.
-
-
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:
getAllTLSVersionsin interfaceITLSConfigurationMode- 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:
getAllTLSVersionIDsin interfaceITLSConfigurationMode- Returns:
- A list of the IDs of the supported TLS versions in the correct
order. May not be
null.
-
getAllTLSVersionIDsAsArray
- Specified by:
getAllTLSVersionIDsAsArrayin interfaceITLSConfigurationMode- Returns:
- A list of the IDs of the supported TLS versions in the correct
order. May be
nullif no TLS versions are defined.
-
getAllCipherSuites
@Nonnull @ReturnsMutableCopy public com.helger.collection.commons.ICommonsList<String> getAllCipherSuites()- Specified by:
getAllCipherSuitesin interfaceITLSConfigurationMode- Returns:
- All cipher suites in the correct order. May not be
null.
-
getAllCipherSuitesAsArray
- Specified by:
getAllCipherSuitesAsArrayin interfaceITLSConfigurationMode- Returns:
- All cipher suites in the correct order. May be
nullif no cipher suite is defined.
-
equals
-
hashCode
public int hashCode() -
toString
-