public final class SSLUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String[] |
getCiphersuitesToInclude(List<String> cipherSuitesList,
org.apache.cxf.configuration.security.FiltersType filters,
String[] defaultCipherSuites,
String[] supportedCipherSuites,
Logger log) |
static KeyManager[] |
getDefaultKeyStoreManagers(Logger log) |
static TrustManager[] |
getDefaultTrustStoreManagers(Logger log) |
static String[] |
getFilteredCiphersuites(org.apache.cxf.configuration.security.FiltersType filters,
String[] supportedCipherSuites,
Logger log,
boolean exclude) |
static String |
getKeyPassword(String keyPassword,
Logger log) |
static String |
getKeystore(String keyStoreLocation,
Logger log) |
static String |
getKeystoreAlgorithm(String keyStoreMgrFactoryAlgorithm,
Logger log) |
static String |
getKeystorePassword(String keyStorePassword,
Logger log) |
static String |
getKeystoreProvider(String keyStoreProvider,
Logger log) |
static String |
getKeystoreType(String keyStoreType,
Logger log) |
static String |
getKeystoreType(String keyStoreType,
Logger log,
String def) |
static String[] |
getServerSupportedCipherSuites(SSLContext context) |
static SSLContext |
getSSLContext(String protocol,
KeyManager[] keyStoreManagers,
TrustManager[] trustStoreManagers) |
static String[] |
getSupportedCipherSuites(SSLContext context) |
static String |
getTruststore(String trustStoreLocation,
Logger log) |
static String |
getTrustStoreAlgorithm(String trustStoreMgrFactoryAlgorithm,
Logger log) |
static String |
getTruststorePassword(String trustStorePassword,
Logger log) |
static String |
getTruststoreProvider(String trustStoreProvider,
Logger log) |
static String |
getTrustStoreType(String trustStoreType,
Logger log) |
static String |
getTrustStoreType(String trustStoreType,
Logger log,
String def) |
protected static byte[] |
loadFile(String fileName) |
static KeyManager[] |
loadKeyStore(KeyManagerFactory kmf,
KeyStore ks,
InputStream is,
String keyStoreLocation,
String keyStorePassword,
Logger log) |
public static KeyManager[] getDefaultKeyStoreManagers(Logger log)
public static TrustManager[] getDefaultTrustStoreManagers(Logger log)
public static KeyManager[] loadKeyStore(KeyManagerFactory kmf, KeyStore ks, InputStream is, String keyStoreLocation, String keyStorePassword, Logger log)
protected static byte[] loadFile(String fileName) throws IOException
IOException
public static String getKeystoreAlgorithm(String keyStoreMgrFactoryAlgorithm, Logger log)
public static String getTrustStoreAlgorithm(String trustStoreMgrFactoryAlgorithm, Logger log)
public static SSLContext getSSLContext(String protocol, KeyManager[] keyStoreManagers, TrustManager[] trustStoreManagers) throws NoSuchAlgorithmException, KeyManagementException
public static String[] getSupportedCipherSuites(SSLContext context)
public static String[] getServerSupportedCipherSuites(SSLContext context)
public static String[] getCiphersuitesToInclude(List<String> cipherSuitesList, org.apache.cxf.configuration.security.FiltersType filters, String[] defaultCipherSuites, String[] supportedCipherSuites, Logger log)
public static String[] getFilteredCiphersuites(org.apache.cxf.configuration.security.FiltersType filters, String[] supportedCipherSuites, Logger log, boolean exclude)
public static String getTrustStoreType(String trustStoreType, Logger log, String def)
public static String getTruststorePassword(String trustStorePassword, Logger log)
Apache CXF