Package org.apache.hc.core5.http.ssl
Class TlsCiphers
- java.lang.Object
-
- org.apache.hc.core5.http.ssl.TlsCiphers
-
public final class TlsCiphers extends java.lang.ObjectTLS cipher suite support methods- Since:
- 5.0
-
-
Constructor Summary
Constructors Constructor Description TlsCiphers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String[]excludeH2Blacklisted(java.lang.String... ciphers)static java.lang.String[]excludeWeak(java.lang.String... ciphers)static booleanisH2Blacklisted(java.lang.String cipherSuite)Tests whether RFC9113 Appendix A Prohibited TLS 1.2 Cipher Suites prohibits the use of a given cipher suite.static booleanisWeak(java.lang.String cipherSuite)Tests whether a given cipher suite is considered weak.
-
-
-
Method Detail
-
isH2Blacklisted
public static boolean isH2Blacklisted(java.lang.String cipherSuite)
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
public static boolean isWeak(java.lang.String cipherSuite)
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
public static java.lang.String[] excludeH2Blacklisted(java.lang.String... ciphers)
-
excludeWeak
public static java.lang.String[] excludeWeak(java.lang.String... ciphers)
-
-