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 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[]
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
-