Class TlsCiphers

java.lang.Object
org.apache.hc.core5.http.ssl.TlsCiphers

public final class TlsCiphers extends Object
TLS cipher suite support methods
Since:
5.0
  • Constructor Details

    • TlsCiphers

      public TlsCiphers()
  • Method Details

    • isH2Blacklisted

      public static boolean isH2Blacklisted(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(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 String[] excludeH2Blacklisted(String... ciphers)
    • excludeWeak

      public static String[] excludeWeak(String... ciphers)