public class SSLContextFactory extends Object
Modifier and Type | Method and Description |
---|---|
static SSLContext |
buildClientContext(TrustManager[] trustManagers,
KeyManager[] keyManagers) |
static KeyManager[] |
getKeyManagers(String keyStorePath,
String keyStorePassword,
String keyStoreType,
String keyManagerFactoryAlgorithm,
String certAlias) |
static TrustManager[] |
getTrustManagers(String trustStorePath,
String trustStorePassword,
String trustStoreType,
String trustManagerFactoryAlgorithm) |
public static SSLContext buildClientContext(TrustManager[] trustManagers, KeyManager[] keyManagers) throws NoSuchAlgorithmException, KeyManagementException
public static KeyManager[] getKeyManagers(String keyStorePath, String keyStorePassword, String keyStoreType, String keyManagerFactoryAlgorithm, String certAlias) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public static TrustManager[] getTrustManagers(String trustStorePath, String trustStorePassword, String trustStoreType, String trustManagerFactoryAlgorithm) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.