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.Object
TLS cipher suite support methods- Since:
- 5.0
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Set<java.lang.String>
H2_BLACKLISTED
private static java.util.List<java.util.regex.Pattern>
WEAK_CIPHER_SUITE_PATTERNS
private static java.lang.String
WEAK_CIPHERS
private static java.lang.String
WEAK_KEY_EXCHANGES
-
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)
static boolean
isWeak(java.lang.String cipherSuite)
-
-
-
Field Detail
-
H2_BLACKLISTED
private static final java.util.Set<java.lang.String> H2_BLACKLISTED
-
WEAK_KEY_EXCHANGES
private static final java.lang.String WEAK_KEY_EXCHANGES
- See Also:
- Constant Field Values
-
WEAK_CIPHERS
private static final java.lang.String WEAK_CIPHERS
- See Also:
- Constant Field Values
-
WEAK_CIPHER_SUITE_PATTERNS
private static final java.util.List<java.util.regex.Pattern> WEAK_CIPHER_SUITE_PATTERNS
-
-
Method Detail
-
isH2Blacklisted
public static boolean isH2Blacklisted(java.lang.String cipherSuite)
-
isWeak
public static boolean isWeak(java.lang.String cipherSuite)
-
excludeH2Blacklisted
public static java.lang.String[] excludeH2Blacklisted(java.lang.String... ciphers)
-
excludeWeak
public static java.lang.String[] excludeWeak(java.lang.String... ciphers)
-
-