Class TlsCiphers
java.lang.Object
org.apache.hc.core5.http.ssl.TlsCiphers
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]excludeH2Blacklisted(String... ciphers) static String[]excludeWeak(String... ciphers) static booleanisH2Blacklisted(String cipherSuite) Tests whether RFC9113 Appendix A Prohibited TLS 1.2 Cipher Suites prohibits the use of a given cipher suite.static booleanTests whether a given cipher suite is considered weak.
-
Field Details
-
H2_BLACKLISTED
-
WEAK_KEY_EXCHANGES
- See Also:
-
WEAK_CIPHERS
- See Also:
-
RC100015_DEPRECATED_CIPHERS
RFC 10015 Deprecating Obsolete Key Exchange Methods in TLS 1.2 and DTLS 1.2.- See Also:
-
WEAK_CIPHER_SUITE_PATTERNS
-
-
Constructor Details
-
TlsCiphers
public TlsCiphers()
-
-
Method Details
-
isH2Blacklisted
Tests whether RFC9113 Appendix A Prohibited TLS 1.2 Cipher Suites prohibits the use of a given cipher suite.- Parameters:
cipherSuite- The cipher suite name to test.- Returns:
- Whether RFC9113 prohibits the use of a given cipher suites for HTTP/2.
-
isWeak
Tests whether a given cipher suite is considered weak.A cipher suite is considered weak if it is blacklisted for HTTP/2 or matches any of the weak cipher suite patterns.
- Parameters:
cipherSuite- The cipher suite name to test.- Returns:
- Whether the cipher suite is considered weak.
-
excludeH2Blacklisted
-
excludeWeak
-
getH2Blacklisted
-