public abstract class SSLEngineFactorySupport extends Object
SSLEngineFactory
and SSLContextFactory
implementation that takes care of
the logic for KeyManager and TrustManager.Modifier and Type | Field and Description |
---|---|
static String |
JAVA_NET_SSL_PREFIX |
protected KeyManagerFactory |
kmf |
protected String |
protocol |
protected TrustManagerFactory |
tmf |
Constructor and Description |
---|
SSLEngineFactorySupport() |
Modifier and Type | Method and Description |
---|---|
protected static String |
getProperty(Properties properties,
String property) |
protected static String |
getProperty(Properties properties,
String property,
String defaultValue) |
protected void |
load(Properties properties) |
static KeyManagerFactory |
loadKeyManagerFactory(String keyStorePassword,
String keyStore,
String keyManagerAlgorithm) |
static KeyManagerFactory |
loadKeyManagerFactory(String keyStorePassword,
String keyStore,
String keyManagerAlgorithm,
String keyStoreType) |
static void |
loadKeyStore(KeyStore ks,
char[] passPhrase,
String keyStoreFile) |
static TrustManagerFactory |
loadTrustManagerFactory(String trustStorePassword,
String trustStore,
String trustManagerAlgorithm) |
static TrustManagerFactory |
loadTrustManagerFactory(String trustStorePassword,
String trustStore,
String trustManagerAlgorithm,
String trustStoreType) |
public static final String JAVA_NET_SSL_PREFIX
protected KeyManagerFactory kmf
protected TrustManagerFactory tmf
protected String protocol
protected void load(Properties properties) throws Exception
Exception
public static TrustManagerFactory loadTrustManagerFactory(String trustStorePassword, String trustStore, String trustManagerAlgorithm) throws Exception
Exception
public static TrustManagerFactory loadTrustManagerFactory(String trustStorePassword, String trustStore, String trustManagerAlgorithm, String trustStoreType) throws Exception
Exception
public static KeyManagerFactory loadKeyManagerFactory(String keyStorePassword, String keyStore, String keyManagerAlgorithm) throws Exception
Exception
public static KeyManagerFactory loadKeyManagerFactory(String keyStorePassword, String keyStore, String keyManagerAlgorithm, String keyStoreType) throws Exception
Exception
public static void loadKeyStore(KeyStore ks, char[] passPhrase, String keyStoreFile) throws IOException, NoSuchAlgorithmException, CertificateException
protected static String getProperty(Properties properties, String property)
protected static String getProperty(Properties properties, String property, String defaultValue)
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.