Class TlsCiphers


  • public final class TlsCiphers
    extends java.lang.Object
    TLS 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 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.
      static boolean isWeak​(java.lang.String cipherSuite)
      Tests whether a given cipher suite is considered weak.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TlsCiphers

        public TlsCiphers()
    • 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)