public class SSLUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CIPHER_DHE_REGEX |
Modifier and Type | Method and Description |
---|---|
static String[] |
filterCiphers(String excludedCipherRegex,
String[] ciphers) |
static SSLContext |
getSSLContext(TrustManager trustManager) |
static boolean |
supportsDHECipherKeysOf(int length)
Returns
true if the jdk supports DEH cipher keys in the
given length. |
public static final String CIPHER_DHE_REGEX
public static boolean supportsDHECipherKeysOf(int length)
true
if the jdk supports DEH cipher keys in the
given length.
inspired by http://stackoverflow.com/a/18254095/231357length
- public static final String[] filterCiphers(String excludedCipherRegex, String[] ciphers)
public static SSLContext getSSLContext(TrustManager trustManager) throws NoSuchAlgorithmException, KeyManagementException
Copyright © 2016 Red Hat, Inc. All rights reserved.