Class SSLUtils
java.lang.Object
org.apache.cxf.configuration.jsse.SSLUtils
Holder for utility methods related to manipulating SSL settings, common
to the connection and listener factories (previously duplicated).
-
Method Summary
Modifier and TypeMethodDescriptionstatic String[]getCiphersuitesToInclude(List<String> cipherSuitesList, org.apache.cxf.configuration.security.FiltersType filters, String[] defaultCipherSuites, String[] supportedCipherSuites, Logger log) static KeyManager[]static TrustManager[]static String[]getFilteredCiphersuites(org.apache.cxf.configuration.security.FiltersType filters, String[] supportedCipherSuites, Logger log, boolean exclude) static StringgetKeyPassword(String keyPassword, Logger log) static StringgetKeystore(String keyStoreLocation, Logger log) static StringgetKeystoreAlgorithm(String keyStoreMgrFactoryAlgorithm, Logger log) static StringgetKeystorePassword(String keyStorePassword, Logger log) static StringgetKeystoreProvider(String keyStoreProvider, Logger log) static StringgetKeystoreType(String keyStoreType, Logger log) static StringgetKeystoreType(String keyStoreType, Logger log, String def) static String[]getServerSupportedCipherSuites(SSLContext context) static SSLContextgetSSLContext(String protocol, KeyManager[] keyStoreManagers, TrustManager[] trustStoreManagers) static String[]getSupportedCipherSuites(SSLContext context) static StringgetTruststore(String trustStoreLocation, Logger log) static StringgetTrustStoreAlgorithm(String trustStoreMgrFactoryAlgorithm, Logger log) static StringgetTruststorePassword(String trustStorePassword, Logger log) static StringgetTruststoreProvider(String trustStoreProvider, Logger log) static StringgetTrustStoreType(String trustStoreType, Logger log) static StringgetTrustStoreType(String trustStoreType, Logger log, String def) protected static byte[]static KeyManager[]loadKeyStore(KeyManagerFactory kmf, KeyStore ks, InputStream is, String keyStoreLocation, String keyStorePassword, Logger log)
-
Method Details
-
getDefaultKeyStoreManagers
-
getDefaultTrustStoreManagers
-
loadKeyStore
public static KeyManager[] loadKeyStore(KeyManagerFactory kmf, KeyStore ks, InputStream is, String keyStoreLocation, String keyStorePassword, Logger log) -
loadFile
- Throws:
IOException
-
getKeystore
-
getKeystoreType
-
getKeystoreType
-
getKeystoreProvider
-
getKeystorePassword
-
getKeyPassword
-
getKeystoreAlgorithm
-
getTrustStoreAlgorithm
-
getSSLContext
public static SSLContext getSSLContext(String protocol, KeyManager[] keyStoreManagers, TrustManager[] trustStoreManagers) throws NoSuchAlgorithmException, KeyManagementException -
getSupportedCipherSuites
-
getServerSupportedCipherSuites
-
getCiphersuitesToInclude
-
getFilteredCiphersuites
-
getTruststore
-
getTrustStoreType
-
getTrustStoreType
-
getTruststorePassword
-
getTruststoreProvider
-